Skip to content

Commit

Permalink
Update github actions (#65)
Browse files Browse the repository at this point in the history
Test on two latest Go versions.
Release with 1.21.4.
Update the actions to their latest versions
  • Loading branch information
mcpherrinm authored Nov 14, 2023
1 parent 1de6c94 commit cbed007
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,26 @@ 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:
version: latest
- 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
Expand Down

0 comments on commit cbed007

Please sign in to comment.