From 78c82148351a51f97d422e6b8fdcdbf223f4d50c Mon Sep 17 00:00:00 2001 From: Adam Hamrick Date: Mon, 18 Sep 2023 12:22:16 -0400 Subject: [PATCH] Enables Us to Skip More Tests (#10678) --- .github/workflows/ci-core.yml | 12 ++++++++++++ .github/workflows/integration-tests.yml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml index 46df80db4aa..7b96f469152 100644 --- a/.github/workflows/ci-core.yml +++ b/.github/workflows/ci-core.yml @@ -56,10 +56,16 @@ jobs: split-packages: name: Split Go Tests + if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }} runs-on: ubuntu-latest outputs: splits: ${{ steps.split.outputs.splits }} 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: Setup Go @@ -290,11 +296,17 @@ jobs: clean: name: Clean Go Tidy & Generate + if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }} runs-on: ubuntu-latest defaults: run: shell: bash 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 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 with: fetch-depth: 0 diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 43ace19d4c6..a51f1c6997b 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -107,7 +107,7 @@ jobs: - name: Print Chainlink Image Built if: needs.changes.outputs.src == 'true' run: | - echo "### chainlink node image tag used for this test run :link:" >>$GITHUB_STEP_SUMMARY + echo "### Chainlink node image tag used for this test run :link:" >>$GITHUB_STEP_SUMMARY echo "\`${GITHUB_SHA}\`" >>$GITHUB_STEP_SUMMARY build-test-image: