Move check-envtest into a separate GitHub job
Issue: [ch12210]
@@ -16,4 +16,18 @@ jobs:
go-version: 1.x
- run: make check
- run: make check-generate
- - run: make check-envtest
+
+ kubernetes-api:
+ runs-on: ubuntu-latest
+ needs: [go-test]
+ strategy:
+ fail-fast: false
+ matrix:
+ kubernetes: [default]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-go@v2
+ with: { go-version: 1.x }
+ - run: go mod download
+ - env: { KUBERNETES: "${{ matrix.kubernetes }}" }
+ run: ENVTEST_K8S_VERSION="${KUBERNETES#default}" make check-envtest
