diff --git a/.github/workflows/ci_linux.yml b/.github/workflows/ci_linux.yml index 6b1c3f63e..3b6761ce4 100644 --- a/.github/workflows/ci_linux.yml +++ b/.github/workflows/ci_linux.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: + inputs: + target-ref: + description: Branch, tag, or SHA to test + required: true + default: main env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -15,3 +21,4 @@ jobs: with: runner-env: ubuntu-24.04 platform: linux + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }} diff --git a/.github/workflows/ci_mac.yml b/.github/workflows/ci_mac.yml index 1ecbcd5b0..40acb5f1a 100644 --- a/.github/workflows/ci_mac.yml +++ b/.github/workflows/ci_mac.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: + inputs: + target-ref: + description: Branch, tag, or SHA to test + required: true + default: main env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -15,4 +21,5 @@ jobs: with: runner-env: macos-15 platform: mac + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }} yarn-args: --network-timeout 100000 diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml index bcf98b07c..fb75c2673 100644 --- a/.github/workflows/ci_windows.yml +++ b/.github/workflows/ci_windows.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: + inputs: + target-ref: + description: Branch, tag, or SHA to test + required: true + default: main env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -15,3 +21,4 @@ jobs: with: runner-env: windows-2025 platform: windows + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }} diff --git a/.github/workflows/job-compile-and-test.yml b/.github/workflows/job-compile-and-test.yml index 884c61c91..bbdea87f1 100644 --- a/.github/workflows/job-compile-and-test.yml +++ b/.github/workflows/job-compile-and-test.yml @@ -11,6 +11,9 @@ on: # Expects 'mac', 'linux', or 'windows' required: true type: string + checkout-ref: + required: false + type: string yarn-args: type: string @@ -23,6 +26,8 @@ jobs: steps: - uses: actions/checkout@v5 + with: + ref: ${{ inputs.checkout-ref }} - name: Use Node.js 24 uses: actions/setup-node@v4