Skip to content

Commit

Permalink
chore: fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrobertson committed Apr 29, 2024
1 parent a91079a commit 1929635
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: [1.13, 1.16, 1.18]
go: ['1.13', '1.16', '1.18']
os: [ubuntu-latest, macos-latest] # windows-latest doesn't support find -wholename
exclude:
- os: macos-latest
go: 1.13
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand All @@ -31,5 +34,6 @@ jobs:
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Format
run: "find . -not \\( \\( -wholename './.git' \\) -prune \\) -name '*.go' | xargs gofmt -s -d"
6 changes: 5 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.13', '1.16', '1.18', '1.19', '1.20', '1.21']
go: ['1.13' ,'1.16', '1.18', '1.19', '1.20', '1.21']
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: macos-latest
go: 1.13
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand All @@ -32,6 +35,7 @@ jobs:
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Build and test
run: "go test ./..."
- name: Vet
Expand Down

0 comments on commit 1929635

Please sign in to comment.