Skip to content

Commit

Permalink
Update versions of actions to avoid warnings about node16; update go …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
torcolvin committed Mar 21, 2024
1 parent 51fde6a commit 2481c35
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
name: addlicense
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.1
go-version: 1.21.8
- run: go install github.com/google/addlicense@latest
- run: addlicense -check -f licenses/addlicense.tmpl .

Expand All @@ -40,43 +40,46 @@ jobs:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.1
go-version: 1.21.8
- name: Build
run: go build -v "./..."
- name: Run Tests
run: go test -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
shell: bash
- name: Annotate Failures
if: always()
uses: guyarb/golang-test-annotations@v0.7.0
uses: guyarb/golang-test-annotations@v0.8.0
with:
test-results: test.json

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.8
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.54.2
version: v1.57.1

test-race:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.1
go-version: 1.21.8
- name: Run Tests
run: go test -race -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
shell: bash
- name: Annotate Failures
if: always()
uses: guyarb/golang-test-annotations@v0.7.0
uses: guyarb/golang-test-annotations@v0.8.0
with:
test-results: test.json

0 comments on commit 2481c35

Please sign in to comment.