Skip to content

Commit

Permalink
Update CI.
Browse files Browse the repository at this point in the history
Removed actions/cache since the package has no dependencies, therefore nothing to cache.
  • Loading branch information
bojanz committed Oct 31, 2024
1 parent a98d059 commit 6a5f6f0
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 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 All @@ -17,13 +17,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-
- name: Verify code formatting
run: |
test -z "$(set -o pipefail && goimports -l -d . | tee goimports.out)" || { cat goimports.out && exit 1; }
Expand All @@ -36,25 +29,18 @@ 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
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-
- name: Test
run: go test -v -coverprofile=profile.cov ./...

Expand Down

0 comments on commit 6a5f6f0

Please sign in to comment.