Skip to content

Commit aac178c

Browse files
committed
fix: gopath doesn't be set in github actions runner
Signed-off-by: Daniel Hu <[email protected]>
1 parent fe920e6 commit aac178c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/ci.yaml

+4-13
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Set up Go
16-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v4
1717
with:
1818
go-version: 1.20
19+
cache: true
1920

2021
- name: Check out code
21-
uses: actions/checkout@v2
22-
23-
- name: Install dependencies
24-
run: |
25-
go install golang.org/x/tools/cmd/goimports@latest
26-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
27-
28-
- name: Format and vet code
29-
run: |
30-
make fmt
31-
make vet
22+
uses: actions/checkout@v3
3223

3324
- name: Run tests
34-
run: go test ./...
25+
run: go test -v ./...
3526

3627
- name: Build project
3728
run: make build

0 commit comments

Comments
 (0)