Update github actions (#65)

Test on two latest Go versions.
Release with 1.21.4.
Update the actions to their latest versions
This commit is contained in:
Matthew McPherrin 2023-11-13 21:34:00 -05:00 committed by GitHub
parent 1de6c94faa
commit cbed00787a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -14,11 +14,11 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20.1'
go-version: '1.21.4'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false

View File

@ -15,16 +15,18 @@ jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
go-version:
- 1.20.x
- 1.21.x
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
@ -32,7 +34,7 @@ jobs:
- name: go coverage
run: |
go test -mod=readonly -v -race -covermode=atomic -coverprofile=coverage.out ./...
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
if: success()
with:
file: ./coverage.out