Skip to content

Commit

Permalink
Merge pull request #36 from youichiro/add_go_versions_to_ci_test
Browse files Browse the repository at this point in the history
go1.21 support
  • Loading branch information
aereal committed Nov 16, 2023
2 parents 47d4a21 + 546232d commit 3d81d31
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
test:
strategy:
matrix:
go_version:
- 1.18.x
go_version: [ '1.18.x', '1.19.x', '1.20.x', '1.21.x' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -36,7 +35,7 @@ jobs:
run: go test -v -race -coverprofile=cover.os-${{ matrix.os }}.ver-${{ matrix.go_version }}.txt -covermode=atomic ./...
- name: upload coverage
uses: codecov/codecov-action@v3
if: ${{ matrix.go_version == '1.18.x' }}
if: ${{ matrix.go_version == '1.21.x' }}
with:
files: ./cover.os-${{ matrix.os }}.ver-${{ matrix.go_version }}.txt
determine_release:
Expand Down Expand Up @@ -69,11 +68,11 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
- uses: actions/setup-go@v3
with:
go-version: '1.18.x'
go-version: '1.21.x'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-1.18.x-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-1.21.x-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: goreleaser/goreleaser-action@v2.9.1
Expand Down
2 changes: 1 addition & 1 deletion analyzer/testdata/src/github.com/aereal/a/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/aereal/a

go 1.18
go 1.21
2 changes: 1 addition & 1 deletion analyzer/testdata/src/github.com/aereal/b/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/aereal/b

go 1.18
go 1.21
2 changes: 1 addition & 1 deletion analyzer/testdata/src/github.com/aereal/c/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/aereal/c

go 1.18
go 1.21
2 changes: 1 addition & 1 deletion analyzer/testdata/src/github.com/aereal/d/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/aereal/d

go 1.18
go 1.21
2 changes: 1 addition & 1 deletion analyzer/testdata/src/github.com/aereal/empty/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/aereal/empty

go 1.18
go 1.21
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/aereal/pkgboundaries

go 1.18
go 1.21

require (
github.com/google/go-cmp v0.5.9
Expand Down

0 comments on commit 3d81d31

Please sign in to comment.