Skip to content

Commit 10dca68

Browse files
authored
Update ci.yml
1 parent a044622 commit 10dca68

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
go-version: [1.21.x, 1.22.x, 1.23.x]
14+
go-version: [1.21.x, 1.22.x, 1.23.x, latest]
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Set up Go
19+
- name: Set up Go ${{ matrix.go }}
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: ${{ matrix.go-version }}
22+
go-version: ${{ matrix.go }}
2323

2424
- name: Cache Go modules
2525
uses: actions/cache@v4
2626
with:
2727
path: ~/go/pkg/mod
28-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28+
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
2929
restore-keys: |
30-
${{ runner.os }}-go-
30+
${{ runner.os }}-go-${{ matrix.go }}-
3131
3232
- name: Download dependencies
33-
run: go mod download
33+
run: go mod download && echo "Download successful" || go mod tidy && echo "Tidy successful" || return 1
3434

3535
- name: Verify dependencies
3636
run: go mod verify

0 commit comments

Comments
 (0)