-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from Charliekenney23/github-actions
add Github Action workflow for unit tests
- Loading branch information
Showing
14 changed files
with
120 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- name: lint | ||
run: make lint | ||
- name: build | ||
run: make docker-build | ||
- name: unit test | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,24 @@ | ||
run: | ||
tests: false | ||
|
||
linters-settings: | ||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
|
||
govet: | ||
check-shadowing: true | ||
|
||
enable: | ||
- atomicalign | ||
enable-all: false | ||
disable: | ||
- shadow | ||
disable-all: false | ||
golint: | ||
min-confidence: 0.8 | ||
gocyclo: | ||
min-complexity: 30 | ||
gocognit: | ||
min-complexity: 30 | ||
maligned: | ||
suggest-new: true | ||
dupl: | ||
threshold: 100 | ||
|
||
linters: | ||
enable-all: true | ||
enable: | ||
- gofmt | ||
- goimports | ||
- structcheck | ||
- varcheck | ||
- staticcheck | ||
- unconvert | ||
- revive | ||
- ineffassign | ||
- vet | ||
- unused | ||
- misspell | ||
disable: | ||
- vetshadow | ||
- gocyclo | ||
- unparam | ||
- nakedret | ||
- lll | ||
- dupl | ||
- gosec | ||
- gochecknoinits | ||
- gochecknoglobals | ||
- wsl | ||
- gomnd | ||
- godot | ||
- goerr113 | ||
- nestif | ||
fast: false | ||
- errcheck | ||
|
||
run: | ||
tests: false | ||
timeout: 8m | ||
skip-dirs: | ||
- api | ||
- design | ||
- docs | ||
- docs/man |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.