Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour authored May 27, 2024
1 parent 0d99c14 commit cd85a6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: CI
on: [push, pull_request]
env:
go-version: "1.19.x"
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.go-version }}
go-version: ${{ matrix.go-version }}

- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
Expand All @@ -37,7 +38,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.go-version }}
go-version: 1.20.x

- name: Create release
id: create_release
Expand Down

0 comments on commit cd85a6c

Please sign in to comment.