From 065cb9c6c44c61589bbd0154dccb470607671bf7 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Wed, 14 Aug 2024 14:30:52 +1000 Subject: [PATCH] ci: run integration tests if the PR is labelled with "run-integration" --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eed1614d7..774e2e95f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,7 +179,7 @@ jobs: - run: cd docs && zola build integration-shard: name: Shard Integration Tests - if: github.event_name != 'pull_request' || github.event.action == 'enqueued' + if: github.event_name != 'pull_request' || github.event.action == 'enqueued' || contains( github.event.pull_request.labels.*.name, 'run-integration') runs-on: ubuntu-latest outputs: matrix: ${{ steps.extract-tests.outputs.matrix }} @@ -195,7 +195,7 @@ jobs: echo "matrix={\"test\":$(jq -c -n '$ARGS.positional' --args $(git grep -l '^//go:build integration' | xargs grep '^func Test' | awk '{print $2}' | cut -d'(' -f1))}" >> "$GITHUB_OUTPUT" integration-run: name: Integration Test - if: github.event_name != 'pull_request' || github.event.action == 'enqueued' + if: github.event_name != 'pull_request' || github.event.action == 'enqueued' || contains( github.event.pull_request.labels.*.name, 'run-integration') needs: integration-shard runs-on: ubuntu-latest strategy: