From 05a3792dc209e6bb67ac7b8fc0840e756074331e Mon Sep 17 00:00:00 2001 From: Frostebite Date: Sun, 3 Aug 2025 20:03:22 +0100 Subject: [PATCH] ci: run github check integration optionally --- .../workflows/cloud-runner-ci-pipeline.yml | 22 +++++++++++++++++ .../workflows/github-checks-integration.yml | 24 ------------------- 2 files changed, 22 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/github-checks-integration.yml diff --git a/.github/workflows/cloud-runner-ci-pipeline.yml b/.github/workflows/cloud-runner-ci-pipeline.yml index 918dd472..83b36987 100644 --- a/.github/workflows/cloud-runner-ci-pipeline.yml +++ b/.github/workflows/cloud-runner-ci-pipeline.yml @@ -3,6 +3,11 @@ name: Cloud Runner CI Pipeline on: push: { branches: [cloud-runner-develop, cloud-runner-preview, main] } workflow_dispatch: + inputs: + runGithubIntegrationTests: + description: 'Run GitHub Checks integration tests' + required: false + default: 'false' permissions: checks: write @@ -207,3 +212,20 @@ jobs: name: ${{ matrix.providerStrategy }} Build (${{ matrix.targetPlatform }}) path: ${{ steps.unity-build.outputs.BUILD_ARTIFACT }} retention-days: 14 + + githubChecksIntegration: + name: GitHub Checks Integration + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' && github.event.inputs.runGithubIntegrationTests == 'true' + env: + RUN_GITHUB_INTEGRATION_TESTS: true + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn test cloud-runner-github-checks.integration --detectOpenHandles --forceExit --runInBand + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/github-checks-integration.yml b/.github/workflows/github-checks-integration.yml deleted file mode 100644 index 84cdff27..00000000 --- a/.github/workflows/github-checks-integration.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: GitHub Checks Integration - -on: - workflow_dispatch: - -permissions: - contents: read - checks: write - -jobs: - integration: - runs-on: ubuntu-latest - env: - RUN_GITHUB_INTEGRATION_TESTS: true - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'yarn' - - run: yarn install --frozen-lockfile - - run: yarn test cloud-runner-github-checks.integration --detectOpenHandles --forceExit --runInBand - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}