Note that one workaround would be to enumerate the matrix as an array (below) and to include a parameter that indicates if the step should be executed. Something like this, for example:
pipeline:
build:
image: golang:${TAG}
matrix: matrix1
commands:
- go build
- go test
build2:
image: golang:${TAG}
commands:
- go build
- go test
+ when:
+ matrix:
+ BUILD2: true
matrix:
include:
- TAG: 1.7
BUILD2: false
- TAG: 1.8
BUILD2: false
- TAG: 1.9
BUILD2: true
- TAG: 2.0
BUILD2: true