Skip to content

test skipping 32-bit matrix configuration #4

test skipping 32-bit matrix configuration

test skipping 32-bit matrix configuration #4

Workflow file for this run

name: Test filtering Matrix jobs
on:
merge_group:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup:
strategy:
fail-fast: false
matrix:
bits: [32, 64]
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Report
run: echo "Setup completed"
build:
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'merge_group' || matrix.bits == 64 }}

Check failure on line 28 in .github/workflows/matrix.yml

View workflow run for this annotation

GitHub Actions / Test filtering Matrix jobs

Invalid workflow file

The workflow is not valid. .github/workflows/matrix.yml (Line: 28, Col: 9): Unrecognized named-value: 'matrix'. Located at position 39 within expression: github.event_name == 'merge_group' || matrix.bits == 64
defaults:
run:
shell: bash
steps:
- name: Filter
run: exit 0
- name: Task
run: echo "Task not filtered out"
matrix-status:
if: ${{ always() }}
needs: [setup, 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