Add seperate build step to speed up tests
Some checks reported errors
continuous-integration/drone/pr Build was killed
Some checks reported errors
continuous-integration/drone/pr Build was killed
This commit is contained in:
parent
5ac7ac667d
commit
066b899fd6
12
.drone1.yml
12
.drone1.yml
|
@ -47,6 +47,17 @@ steps:
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
GOFLAGS: '-mod=vendor'
|
GOFLAGS: '-mod=vendor'
|
||||||
|
commands:
|
||||||
|
- make build
|
||||||
|
when:
|
||||||
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
image: vikunja/golang-build:latest
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
GOFLAGS: '-mod=vendor'
|
||||||
|
depends_on: [ build ]
|
||||||
commands:
|
commands:
|
||||||
- make generate
|
- make generate
|
||||||
- make lint
|
- make lint
|
||||||
|
@ -59,7 +70,6 @@ steps:
|
||||||
- make static-check
|
- make static-check
|
||||||
- wget -O - -q https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin v2.2.0 # Need to manually install as it does not support being installed via go modules like the rest.
|
- wget -O - -q https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin v2.2.0 # Need to manually install as it does not support being installed via go modules like the rest.
|
||||||
- make gosec-check
|
- make gosec-check
|
||||||
- make build
|
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user