Skip to content

Commit 968c5c8

Browse files
committed
fix: gopath doesn't be set in github actions runner
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
1 parent bb641bc commit 968c5c8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,10 @@ jobs:
1616
uses: actions/setup-go@v4
1717
with:
1818
go-version: 1.20
19-
go-path: ${{ runner.workspace }}/go
19+
cache: true
2020

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

3424
- name: Run tests
3525
run: go test ./...

0 commit comments

Comments
 (0)