Skip to content

Commit

Permalink
Merge pull request #21 from vanng822/use-make
Browse files Browse the repository at this point in the history
Use make for running gocyclo
  • Loading branch information
vanng822 committed May 4, 2024
2 parents fbcd2e9 + 8b43cf0 commit c399ded
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ jobs:
with:
go-version: 1.18

- name: Install gocyclo
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: make test

- name: Run gocyclo
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make gocyclo_all

0 comments on commit c399ded

Please sign in to comment.