mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +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:
parent
6469efee7b
commit
8762c10aae
2 changed files with 8 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -59,26 +59,26 @@ jobs:
|
||||||
system: x86_64-linux
|
system: x86_64-linux
|
||||||
|
|
||||||
test_aarch64-linux:
|
test_aarch64-linux:
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
needs: build_aarch64-linux
|
needs: build_aarch64-linux
|
||||||
with:
|
with:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
os: blacksmith-32vcpu-ubuntu-2204-arm
|
os: blacksmith-32vcpu-ubuntu-2204-arm
|
||||||
system: aarch64-linux
|
system: aarch64-linux
|
||||||
|
|
||||||
test_x86_64-darwin:
|
test_x86_64-darwin:
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
needs: build_x86_64-darwin
|
needs: build_x86_64-darwin
|
||||||
with:
|
with:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
os: macos-latest-large
|
os: macos-latest-large
|
||||||
system: x86_64-darwin
|
system: x86_64-darwin
|
||||||
|
|
||||||
test_aarch64-darwin:
|
test_aarch64-darwin:
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
needs: build_aarch64-darwin
|
needs: build_aarch64-darwin
|
||||||
with:
|
with:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
os: macos-latest-xlarge
|
os: macos-latest-xlarge
|
||||||
system: aarch64-darwin
|
system: aarch64-darwin
|
||||||
|
|
||||||
|
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -7,8 +7,13 @@ on:
|
||||||
system:
|
system:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
if:
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
if: ${{ inputs.if }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue