[GH-ISSUE #996] Issue: Standalone strategy.matrix.include doesn't work #584

Closed
opened 2026-03-01 21:44:44 +03:00 by kerem · 2 comments
Owner

Originally created by @iluuu1994 on GitHub (Feb 13, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/996

System information

Most likely irrelevant.

  • Operating System: Linux (Pop!_OS 21.10)
  • Architecture: x64 (64-bit)
  • Dell XPS 9700
  • Docker version: 20.10.12
  • Docker image used in act: ghcr.io/catthehacker/ubuntu:act-20.04
  • act version: 0.2.25

Expected behaviour

name: Test
on: [push]
jobs:
  test:
    strategy:
      matrix:
        # This line is required for act to pick up the job
        # foo: []
        include:
          - foo: a
    name: Test
    runs-on: ubuntu-20.04
    steps:
      - name: Echo matrix
        run: echo "${{ matrix.foo }}"

I'd expect this to run one job for { foo: a }.

Actual behaviour

No job is run. The commented line needs to be added for this to work. The configuration runs on GitHub actions without issues.

act output

Log
DEBU[0000] Loading environment from [hidden]/.env 
DEBU[0000] Loading secrets from [hidden]/.secrets 
DEBU[0000] Loading workflows from '[hidden]/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'push.yml' in '[hidden]/.github/workflows/push.yml' 
DEBU[0000] Reading workflow '[hidden]/.github/workflows/push.yml' 
DEBU[0000] Correcting if statements '[hidden]/.github/workflows/push.yml' 
DEBU[0000] Planning event: push             
DEBU[0000]
Originally created by @iluuu1994 on GitHub (Feb 13, 2022). Original GitHub issue: https://github.com/nektos/act/issues/996 ## System information Most likely irrelevant. - Operating System: Linux (Pop!_OS 21.10) - Architecture: x64 (64-bit) - Dell XPS 9700 - Docker version: 20.10.12 - Docker image used in `act`: ghcr.io/catthehacker/ubuntu:act-20.04 - `act` version: 0.2.25 ## Expected behaviour ```yml name: Test on: [push] jobs: test: strategy: matrix: # This line is required for act to pick up the job # foo: [] include: - foo: a name: Test runs-on: ubuntu-20.04 steps: - name: Echo matrix run: echo "${{ matrix.foo }}" ``` I'd expect this to run one job for `{ foo: a }`. ## Actual behaviour No job is run. The commented line needs to be added for this to work. The configuration runs on GitHub actions without issues. ## `act` output <details> <summary>Log</summary> ```none DEBU[0000] Loading environment from [hidden]/.env DEBU[0000] Loading secrets from [hidden]/.secrets DEBU[0000] Loading workflows from '[hidden]/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'push.yml' in '[hidden]/.github/workflows/push.yml' DEBU[0000] Reading workflow '[hidden]/.github/workflows/push.yml' DEBU[0000] Correcting if statements '[hidden]/.github/workflows/push.yml' DEBU[0000] Planning event: push DEBU[0000] ``` </details>
kerem 2026-03-01 21:44:44 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@catthehacker commented on GitHub (Feb 13, 2022):

duplicate of #769

<!-- gh-comment-id:1038424218 --> @catthehacker commented on GitHub (Feb 13, 2022): duplicate of #769
Author
Owner

@iluuu1994 commented on GitHub (Feb 13, 2022):

@catthehacker Thanks, I tried it with multiple searches but couldn't find it.

<!-- gh-comment-id:1038424898 --> @iluuu1994 commented on GitHub (Feb 13, 2022): @catthehacker Thanks, I tried it with multiple searches but couldn't find it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#584
No description provided.