Skip to content

Commit

Permalink
ci: 支持 go1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Feb 23, 2023
1 parent 83a5526 commit ba01a59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
go: ['1.18.x', '1.19.x']
go: ['1.18.x', '1.20.x']

steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
id: go
Expand All @@ -30,7 +30,7 @@ jobs:
run: go test -v -coverprofile='coverage.txt' -covermode=atomic ./...

- name: Upload Coverage report
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.txt

0 comments on commit ba01a59

Please sign in to comment.