Skip to content

Commit 1929635

Browse files
chore: fix github actions
1 parent a91079a commit 1929635

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
go: [1.13, 1.16, 1.18]
15+
go: ['1.13', '1.16', '1.18']
1616
os: [ubuntu-latest, macos-latest] # windows-latest doesn't support find -wholename
17+
exclude:
18+
- os: macos-latest
19+
go: 1.13
1720
steps:
1821
- name: Harden Runner
1922
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
@@ -31,5 +34,6 @@ jobs:
3134
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3235
with:
3336
go-version: ${{ matrix.go }}
37+
check-latest: true
3438
- name: Format
3539
run: "find . -not \\( \\( -wholename './.git' \\) -prune \\) -name '*.go' | xargs gofmt -s -d"

.github/workflows/unit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ 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' ,'1.16', '1.18', '1.19', '1.20', '1.21']
1616
os: [ubuntu-latest, macos-latest, windows-latest]
17+
exclude:
18+
- os: macos-latest
19+
go: 1.13
1720
steps:
1821
- name: Harden Runner
1922
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
@@ -32,6 +35,7 @@ jobs:
3235
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3336
with:
3437
go-version: ${{ matrix.go }}
38+
check-latest: true
3539
- name: Build and test
3640
run: "go test ./..."
3741
- name: Vet

0 commit comments

Comments
 (0)