Skip to content

Commit 64839fe

Browse files
chore: fix github actions
1 parent a91079a commit 64839fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
go: [1.13, 1.16, 1.18]
15+
go: ['1.13.x', '1.16.x', '1.18.x']
1616
os: [ubuntu-latest, macos-latest] # windows-latest doesn't support find -wholename
1717
steps:
1818
- name: Harden Runner
@@ -31,5 +31,6 @@ jobs:
3131
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3232
with:
3333
go-version: ${{ matrix.go }}
34+
check-latest: true
3435
- name: Format
3536
run: "find . -not \\( \\( -wholename './.git' \\) -prune \\) -name '*.go' | xargs gofmt -s -d"

.github/workflows/unit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
go: ['1.13', '1.16', '1.18', '1.19', '1.20', '1.21']
15+
go: ['1.13.x', '1.16.x', '1.18.x', '1.19.x', '1.20.x', '1.21.x']
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717
steps:
1818
- name: Harden Runner
@@ -32,6 +32,7 @@ jobs:
3232
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3333
with:
3434
go-version: ${{ matrix.go }}
35+
check-latest: true
3536
- name: Build and test
3637
run: "go test ./..."
3738
- name: Vet

0 commit comments

Comments
 (0)