Skip to content

test skipping 32-bit matrix configuration #2

test skipping 32-bit matrix configuration

test skipping 32-bit matrix configuration #2

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:
build:
if: ${{ matrix.bits == 32 && github.event_name != 'merge_group' }}

Check failure on line 14 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: 14, Col: 9): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.bits == 32 && github.event_name != 'merge_group'
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