ci: use make to build and run tests/check

This commit is contained in:
Clayton Craft
2022-09-11 13:49:08 -07:00
parent 584a8e4e2a
commit 3787944141
2 changed files with 3 additions and 28 deletions

View File

@@ -24,25 +24,13 @@ stages:
- merge_requests
- tags
# device documentation
gofmt linting:
stage: lint
allow_failure: true
<<: *only-default
before_script:
# specific mirror used because staticcheck hasn't made it to the other mirrors yet...
- apk -q update --repository http://dl-4.alpinelinux.org/alpine/edge/testing
- apk -q add --repository http://dl-4.alpinelinux.org/alpine/edge/testing go staticcheck
script:
- .ci/check_linting.sh
build:
stage: build
<<: *only-default
before_script:
- apk -q add go
- apk -q add go staticcheck make
script:
- go build -v
- go test ./...
- make test
- make
artifacts:
expire_in: 1 week