Skip to content

Commit 9df9b7b

Browse files
committed
Fix ci to use setup-go@v4
1 parent 7d0a73d commit 9df9b7b

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,17 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.14.x]
7+
go-version: [1.14.x, 1.19.x]
88
platform: [ubuntu-latest, macos-latest]
99
runs-on: ${{ matrix.platform }}
1010
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
1113
- name: Install Go
12-
uses: actions/setup-go@v1
14+
uses: actions/setup-go@v4
1315
with:
1416
go-version: ${{ matrix.go-version }}
15-
- name: setup env
16-
run: |
17-
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
18-
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
19-
shell: bash
20-
- name: Checkout code
21-
uses: actions/checkout@v2
22-
- name: cache
23-
uses: actions/cache@v1
24-
with:
25-
path: ~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
2917
- name: Run test code
3018
run: go test ./...
19+
- name: Build
20+
run: go build

0 commit comments

Comments
 (0)