Skip to content

Commit

Permalink
workflows: test with golang v1.22 and golangci-lint v1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremmfr committed Feb 9, 2024
1 parent 17bbb2c commit 05a5f7f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ jobs:
id: go
- name: Check out code
uses: actions/checkout@v4
- name: Test
run: go test -race -v ./...

test-1_22:
name: Test 1.22
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: '1.22'
id: go
- name: Check out code
uses: actions/checkout@v4
- name: Test
run: go test -race -v ./... -coverprofile=coverage.out -covermode=atomic

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
name: Run
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
check-latest: true
id: go
- name: Check out code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ jobs:
name: Run
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
check-latest: true
id: go
- name: Check out code
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: v1.56
args: -c .golangci.yml -v

0 comments on commit 05a5f7f

Please sign in to comment.