From b577a456c8b8a38cc831094ded8748df72d72b21 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Thu, 10 Aug 2023 13:55:30 -0700 Subject: [PATCH] Run integration test CI in parallel (#8156) * Run integration test CI in parallel * Define go version in E2E Signed-off-by: Derek Nola --- .github/workflows/integration.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index cbb23150f8..8043a385e1 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -31,6 +31,11 @@ jobs: name: Integration Tests runs-on: ubuntu-20.04 timeout-minutes: 45 + strategy: + fail-fast: false + matrix: + itest: [certrotation, etcdrestore, localstorage, startup, custometcdargs, etcdsnapshot, kubeflags, longhorn, secretsencryption] + max-parallel: 3 steps: - name: Checkout uses: actions/checkout@v3 @@ -53,7 +58,7 @@ jobs: - name: Run Integration Tests run: | chmod +x ./dist/artifacts/k3s - sudo -E env "PATH=$PATH" go test -v ./tests/integration/... -run Integration + sudo -E env "PATH=$PATH" go test -v -timeout=45m ./tests/integration/${{ matrix.itest }}/... -run Integration - name: On Failure, Launch Debug Session if: ${{ failure() }} uses: mxschmitt/action-tmate@v3