Build using multiple go versions
This commit is contained in:
parent
909435ff14
commit
9631e0103d
@ -1,9 +1,15 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: golang
|
image: golang:${GO_VERSION}
|
||||||
commands:
|
commands:
|
||||||
- go build main.go
|
- go build main.go
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: [push, pull_request, tag, deployment]
|
event: [push, pull_request, tag, deployment]
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
GO_VERSION:
|
||||||
|
- "1.17"
|
||||||
|
- "1.16"
|
||||||
|
- "latest"
|
||||||
|
Loading…
Reference in New Issue
Block a user