Skip to main content

GA-L004: Invalid matrix config

Error Semantic

Why This Matters

The strategy.matrix configuration is invalid. This may be due to referencing a matrix key that is not defined, or an incorrect include/exclude entry. The workflow will fail during matrix expansion.

How to Fix

Fix the matrix configuration to use valid keys and values.

Before (incorrect)

strategy:
  matrix:
    os: [ubuntu-latest]
    include:
      - os: windows
        node: 18

After (correct)

strategy:
  matrix:
    os: [ubuntu-latest, windows-latest]
    node: [18]

Rule Details

Rule Code
GA-L004
Severity
Error
Category
Semantic

Related Rules