Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Jul 10, 2022
1 parent 0b9cace commit 0b52314
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ jobs:
- run: go test -cover ./...
- run: ./ojosama README.adoc

cyclomatic-complexity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.goversion }}
- run: make setup-tools
- run: ./scripts/test_cyclomatic_complexity.sh

coverage:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ install: go.* *.go cmd/* internal/*

.PHONY: setup-tools
setup-tools:
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
go install github.com/fzipp/gocyclo/cmd/gocyclo@v0.6.0

0 comments on commit 0b52314

Please sign in to comment.