Skip to content

Commit

Permalink
Add gocognito ci (#46)
Browse files Browse the repository at this point in the history
* add gocognito

* modify

* modify
  • Loading branch information
ddddddO authored Apr 30, 2022
1 parent 003648e commit c7d3ee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: install gocognito
run: go install github.com/nrnrk/gocognito/cmd/gocognito@latest
- name: checkout
uses: actions/checkout@v2

- name: compute cognitive
run: gocognito . || echo 'Successful'
- name: test
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic -v
- name: upload coverage to Codecov
Expand Down
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ test: sweep
cyclo: sweep
gocyclo .

cognitive: sweep
gocognito .

all: fmt test cyclo

0 comments on commit c7d3ee8

Please sign in to comment.