1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

Move the if evaluation of the test jobs onthe tests job itself, so we can skip it properly in PRs and block on it in merge groups

This commit is contained in:
Graham Christensen 2025-03-28 11:06:22 -04:00
parent 6469efee7b
commit 8762c10aae
2 changed files with 8 additions and 3 deletions

View file

@ -59,26 +59,26 @@ jobs:
system: x86_64-linux
test_aarch64-linux:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/test.yml
needs: build_aarch64-linux
with:
if: github.event_name == 'merge_group'
os: blacksmith-32vcpu-ubuntu-2204-arm
system: aarch64-linux
test_x86_64-darwin:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/test.yml
needs: build_x86_64-darwin
with:
if: github.event_name == 'merge_group'
os: macos-latest-large
system: x86_64-darwin
test_aarch64-darwin:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/test.yml
needs: build_aarch64-darwin
with:
if: github.event_name == 'merge_group'
os: macos-latest-xlarge
system: aarch64-darwin

View file

@ -7,8 +7,13 @@ on:
system:
required: true
type: string
if:
required: false
default: true
type: boolean
jobs:
tests:
if: ${{ inputs.if }}
strategy:
fail-fast: false
runs-on: ${{ inputs.os }}