Skip to content

Commit

Permalink
chore(ci): Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenithar committed Apr 8, 2024
1 parent cf9e157 commit 3ccc7a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Run go list
run: go list -json -m all > go.list
- name: Nancy
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Checkout code
uses: actions/checkout@v2
- name: Check go mod
Expand All @@ -31,10 +31,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- uses: actions/checkout@v2
- name: lint
uses: golangci/golangci-lint-action@v2.4.0
uses: golangci/golangci-lint-action@v4.0.0
with:
version: latest

Expand All @@ -46,17 +46,17 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
- uses: actions/cache@v2.1.4
go-version: 1.21 # test only the latest go version to speed up CI
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-1.17-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Setup gotestsum
uses: autero1/action-gotestsum@v1.0.0
uses: autero1/action-gotestsum@v2.0.0
with:
gotestsum_version: 1.7.0
gotestsum_version: 1.11.0
- name: Run tests
run: gotestsum --format short-verbose ./...

Expand All @@ -68,17 +68,17 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
- uses: actions/cache@v2.1.4
go-version: 1.21 # test only the latest go version to speed up CI
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-1.17-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Setup gotestsum
uses: autero1/action-gotestsum@v1.0.0
uses: autero1/action-gotestsum@v2.0.0
with:
gotestsum_version: 1.7.0
gotestsum_version: 1.11.0
- name: Run tests
run: gotestsum --format short-verbose ./...

Expand All @@ -90,16 +90,16 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
- uses: actions/cache@v2.1.4
go-version: 1.21 # test only the latest go version to speed up CI
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-1.17-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Setup gotestsum
uses: autero1/action-gotestsum@v1.0.0
uses: autero1/action-gotestsum@v2.0.0
with:
gotestsum_version: 1.7.0
gotestsum_version: 1.11.0
- name: Run tests
run: gotestsum --format short-verbose ./...

0 comments on commit 3ccc7a9

Please sign in to comment.