From 1e75ed7bf55163f3b2096720f30c511bc06f59d4 Mon Sep 17 00:00:00 2001 From: Sil Veltman Date: Mon, 23 Nov 2026 00:22:19 +0100 Subject: [PATCH] CI: Review is a job of Check, and Ready goes Co-Authored-By: Claude Opus 5.5 --- .github/workflows/check.yml | 24 +++++++++++++++++++++--- .github/workflows/ready.yml | 29 ----------------------------- 2 files changed, 21 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/ready.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f1df6afd5..ed6204852 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,7 +1,9 @@ name: Check +# One workflow per PR push: the source checks, then Review, the required check +# that passes once they and the Netlify preview succeeded. It has no +# workflow_dispatch: a skipped Review on a PR head would count as passed. on: - workflow_dispatch: push: branches: [main] pull_request: @@ -12,14 +14,30 @@ permissions: contents: read concurrency: - group: check-${{ github.event.pull_request.number || github.ref }}-${{ github.event.pull_request.draft && 'draft' || 'ready' }} + group: check-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: check: name: Check - uses: fulldotdev/.github/.github/workflows/check.yml@c343f825f2ae7e4cecc484a9a41dee47af2105b9 + uses: fulldotdev/.github/.github/workflows/check.yml@3f6e99b0ee477017b0902c2697cfef934d440747 with: runner: blacksmith-4vcpu-ubuntu-2404 command: vp run check test-command: vp run test:unit + + review: + name: Review + if: ${{ always() && github.event_name == 'pull_request' }} + needs: [check] + runs-on: blacksmith-2vcpu-ubuntu-2404-arm + timeout-minutes: 35 + permissions: + statuses: read + steps: + - uses: fulldotdev/.github/.github/actions/review@3f6e99b0ee477017b0902c2697cfef934d440747 + with: + needs: ${{ toJSON(needs) }} + netlify-checks: '["netlify/fulldev-ui/deploy-preview"]' + # Site previews can take longer than the default 15 minutes. + timeout-minutes: 30 diff --git a/.github/workflows/ready.yml b/.github/workflows/ready.yml deleted file mode 100644 index d8ec33654..000000000 --- a/.github/workflows/ready.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Ready - -on: - pull_request_target: - branches: [main] - types: [opened, synchronize, reopened, ready_for_review, converted_to_draft] - workflow_run: - workflows: [Check] - types: [requested, in_progress, completed] - # Netlify's previews often finish after Check. - status: - -permissions: - actions: read - contents: write - pull-requests: write - statuses: write - checks: read - -jobs: - ready: - if: github.event_name != 'status' || (startsWith(github.event.context, 'netlify/') && github.event.state != 'pending') - uses: fulldotdev/.github/.github/workflows/ready.yml@b614208c0b4d73f6f15836777777b2c1ac5a94b3 - with: - runner: blacksmith-2vcpu-ubuntu-2404 - netlify-checks: '["netlify/fulldev-ui/deploy-preview"]' - merge-app-client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} - secrets: - merge-app-private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}