Skip to content

Commit dc8b736

Browse files
committed
ci: update actions and test against "oldest", "oldstable" and "stable"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 347bb8d commit dc8b736

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/validate.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1-
name: validate
1+
name: CI
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
27
on: [push, pull_request]
38

49
permissions:
510
contents: read
611

712
jobs:
8-
linters:
13+
test:
14+
name: ${{ matrix.platform }} (${{ matrix.go-version || 'oldest' }})
15+
timeout-minutes: 10
916
strategy:
17+
fail-fast: false
1018
matrix:
11-
go-version: [1.20.x]
12-
os: [ubuntu-latest]
13-
runs-on: ${{ matrix.os }}
14-
timeout-minutes: 10
19+
go-version:
20+
- "" # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
21+
- "oldstable"
22+
- "stable"
23+
platform: [ubuntu-latest,windows-latest, macos-latest]
24+
runs-on: ${{ matrix.platform }}
1525
steps:
16-
- uses: actions/setup-go@v4
26+
- uses: actions/checkout@v6
27+
- uses: actions/setup-go@v6
1728
with:
1829
go-version: ${{ matrix.go-version }}
19-
- uses: actions/checkout@v3
30+
go-version-file: "go.mod" # used when go-version is not specified.
2031
- name: lint
21-
uses: golangci/golangci-lint-action@v3
32+
uses: golangci/golangci-lint-action@v9
2233
with:
23-
version: v1.53
24-
args: --print-resources-usage --timeout=10m --verbose
34+
args: --timeout=5m --verbose

0 commit comments

Comments
 (0)