Skip to content

Commit

Permalink
fix: gopath doesn't be set in github actions runner
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
  • Loading branch information
daniel-hutao committed Apr 27, 2023
1 parent fe920e6 commit aac178c
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.20
cache: true

- name: Check out code
uses: actions/checkout@v2

- name: Install dependencies
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Format and vet code
run: |
make fmt
make vet
uses: actions/checkout@v3

- name: Run tests
run: go test ./...
run: go test -v ./...

- name: Build project
run: make build

0 comments on commit aac178c

Please sign in to comment.