Do build and test in one step
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Speed up build time by moving these two tasks to one step so that a new container doesn't have to be spun up and the cached modules from the build step are reused in the test step.
This commit is contained in:
parent
9b9f803231
commit
76ae8f3a44
@ -3,14 +3,11 @@ kind: pipeline
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.12
|
||||
commands:
|
||||
- make build
|
||||
|
||||
- name: test
|
||||
image: golang:1.12
|
||||
commands:
|
||||
- make build
|
||||
- make test
|
||||
|
||||
- name: check
|
||||
|
Loading…
Reference in New Issue
Block a user