Skip to content

Commit a0f74b0

Browse files
author
Dean Karn
committed
update ci actions versions
1 parent ad59377 commit a0f74b0

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/workflow.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,19 @@ jobs:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- name: Install Go
16-
uses: actions/setup-go@v3
17-
with:
18-
go-version: ${{ matrix.go-version }}
19-
2015
- name: Checkout code
21-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
2217

23-
- name: Restore Cache
24-
uses: actions/cache@v3
18+
- name: Install Go
19+
uses: actions/setup-go@v5
2520
with:
26-
path: ~/go/pkg/mod
27-
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
28-
restore-keys: |
29-
${{ runner.os }}-v1-go-
21+
go-version: ${{ matrix.go-version }}
3022

3123
- name: Test
3224
run: go test -race -covermode=atomic -coverprofile="profile.cov" ./...
3325

3426
- name: Send Coverage
35-
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x'
27+
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x'
3628
uses: shogo82148/actions-goveralls@v1
3729
with:
3830
path-to-profile: profile.cov
@@ -41,11 +33,11 @@ jobs:
4133
name: lint
4234
runs-on: ubuntu-latest
4335
steps:
44-
- uses: actions/setup-go@v3
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-go@v5
4538
with:
4639
go-version: 1.22.x
47-
- uses: actions/checkout@v3
4840
- name: golangci-lint
49-
uses: golangci/golangci-lint-action@v3
41+
uses: golangci/golangci-lint-action@v4
5042
with:
5143
version: latest

0 commit comments

Comments
 (0)