Skip to content

Commit a3ce712

Browse files
author
Dean Karn
authored
update actions (#45)
1 parent ae673dd commit a3ce712

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,13 @@ jobs:
1818
os: [ubuntu-latest, macos-latest, windows-latest]
1919
runs-on: ${{ matrix.os }}
2020
steps:
21-
- name: Install Go
22-
uses: actions/setup-go@v3
23-
with:
24-
go-version: ${{ matrix.go-version }}
25-
2621
- name: Checkout code
27-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2823

29-
- name: Restore Cache
30-
uses: actions/cache@v3
24+
- name: Install Go
25+
uses: actions/setup-go@v5
3126
with:
32-
path: ~/go/pkg/mod
33-
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
34-
restore-keys: |
35-
${{ runner.os }}-v1-go-
27+
go-version: ${{ matrix.go-version }}
3628

3729
- name: Test
3830
run: go test -race -cover ./...
@@ -41,7 +33,10 @@ jobs:
4133
name: lint
4234
runs-on: ubuntu-latest
4335
steps:
44-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-go@v5
38+
with:
39+
go-version: stable
4540
- name: golangci-lint
4641
uses: golangci/golangci-lint-action@v3
4742
with:

0 commit comments

Comments
 (0)