From bb069985902b3509f4a5d7558eb7319f3133cd3f Mon Sep 17 00:00:00 2001 From: Adam Hamrick Date: Tue, 12 Sep 2023 11:36:41 -0400 Subject: [PATCH] Skip Smoke Tests Label (#10584) * Skip Smoke Tests Tag * Test with label * Include summary * Fix summary * Smaller * Removed tag --- .github/workflows/integration-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 3c0ce89389f..cddfab9fd1a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -147,6 +147,11 @@ jobs: outputs: matrix: ${{ env.MATRIX_JSON }} steps: + - name: Check for Skip Tests Label + if: contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') + run: | + echo "## \`skip-smoke-tests\` label is active, skipping E2E smoke tests" >>$GITHUB_STEP_SUMMARY + exit 0 - name: Checkout the repo uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - name: Compare Test Lists @@ -163,6 +168,7 @@ jobs: COMBINED_ARRAY=$(jq -c -n "$MATRIX_JSON_AUTOMATION + $MATRIX_JSON_KEEPER") echo "MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV eth-smoke-tests-matrix-automation: + if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }} environment: integration permissions: checks: write @@ -229,6 +235,7 @@ jobs: test-results-file: '{"testType":"go","filePath":"/tmp/gotest.log"}' continue-on-error: true eth-smoke-tests-matrix: + if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }} environment: integration permissions: checks: write @@ -633,6 +640,7 @@ jobs: if: needs.changes.outputs.src == 'false' || needs.solana-test-image-exists.outputs.exists == 'true' solana-smoke-tests: + if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }} environment: integration permissions: checks: write