Skip to content

Commit

Permalink
Update CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Oct 31, 2024
1 parent a98d059 commit aa6a4df
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.23.x

- name: Install tools
run: |
Expand Down Expand Up @@ -36,24 +36,26 @@ jobs:
test:
strategy:
matrix:
go: ['1.18', '1.19', '1.20']
go: ['1.23', '1.22', '1.21']
name: test @ Go ${{ matrix.go }}
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Checkout code
uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-go-
- name: Test
run: go test -v -coverprofile=profile.cov ./...
Expand Down

0 comments on commit aa6a4df

Please sign in to comment.