test skipping 32-bit matrix configuration #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test filtering Matrix jobs | ||
| on: | ||
| merge_group: | ||
| pull_request: | ||
| workflow_dispatch: | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| build: | ||
| if: ${{ matrix.bits == 32 && github.event_name != 'merge_group' }} | ||
|
Check failure on line 14 in .github/workflows/matrix.yml
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| bits: [32, 64] | ||
| os: | ||
| - macos-latest | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| runs-on: ${{ matrix.os }} | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - name: Task | ||
| run: echo "Task not filtered out" | ||
| matrix-status: | ||
| if: ${{ always() }} | ||
| needs: [build] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Successful | ||
| if: ${{ !(contains(needs.*.result, 'failure')) }} | ||
| run: exit 0 | ||
| - name: Failing | ||
| if: ${{ (contains(needs.*.result, 'failure')) }} | ||
| run: exit 1 | ||