Skip to content

Commit f0be51f

Browse files
authored
Merge pull request #107 from thaJeztah/update_actions
ci: update actions and test against latest Go versions
2 parents 6f72e20 + 206d755 commit f0be51f

1 file changed

Lines changed: 26 additions & 21 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
1-
name: Continuous Integration
1+
name: CI
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
- master
8-
pull_request:
3+
permissions:
4+
contents: read
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
on: [push, pull_request]
11+
12+
env:
13+
GOTOOLCHAIN: local
914

1015
jobs:
1116
test:
1217
name: Unit test
1318
timeout-minutes: 10
1419
strategy:
1520
matrix:
16-
go-version: [1.13.x, 1.21.x, 1.22.x]
21+
go-version: [1.13.x, oldstable, stable]
1722
platform: [ubuntu-latest]
1823
runs-on: ${{ matrix.platform }}
1924
steps:
20-
- name: Install Go
21-
uses: actions/setup-go@v5
22-
with:
23-
go-version: ${{ matrix.go-version }}
24-
- name: Checkout code
25-
uses: actions/checkout@v4
26-
- name: Validate headers
27-
if: startsWith(matrix.go-version, '1.13') == false
28-
run: |
29-
go install github.com/containerd/ltag@latest \
30-
&& ./scripts/validate/fileheader
31-
- name: Test
32-
run: go test -v ./...
25+
- name: Install Go
26+
uses: actions/setup-go@v6
27+
with:
28+
go-version: ${{ matrix.go-version }}
29+
- name: Checkout code
30+
uses: actions/checkout@v6
31+
- name: Validate headers
32+
if: startsWith(matrix.go-version, '1.13') == false
33+
run: |
34+
go install github.com/containerd/ltag@latest \
35+
&& ./scripts/validate/fileheader
36+
- name: Test
37+
run: go test -race -v ./...

0 commit comments

Comments
 (0)