Additional run when using matrix
With
โฏ act --version
act version 0.2.19
and this workflow (taken from the docs for the sole purpose of demonstrating the issue) :
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- node-version: 10.x
site: "prod"
datacenter: "site-a"
- node-version: 12.x
site: "dev"
datacenter: "site-b"
steps:
- name: Echo site details
env:
SITE: ${{ matrix.site }}
DATACENTER: ${{ matrix.datacenter }}
run: echo $SITE $DATACENTER
There are 3 runs instead of 2:
โฏ act
[Node.js CI/build-1] ๐ Start image=catthehacker/ubuntu:act-latest
[Node.js CI/build-3] ๐งช Matrix: map[datacenter:site-b node-version:12.x site:dev]
[Node.js CI/build-2] ๐งช Matrix: map[datacenter:site-a node-version:10.x site:prod]
[Node.js CI/build-3] ๐ Start image=catthehacker/ubuntu:act-latest
[Node.js CI/build-2] ๐ Start image=catthehacker/ubuntu:act-latest
[Node.js CI/build-2] ๐ณ docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Node.js CI/build-3] ๐ณ docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Node.js CI/build-1] ๐ณ docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Node.js CI/build-3] โญ Run Echo site details
[Node.js CI/build-2] โญ Run Echo site details
[Node.js CI/build-1] โญ Run Echo site details
| prod site-a
| dev site-b
[Node.js CI/build-2] โ
Success - Echo site details
[Node.js CI/build-3] โ
Success - Echo site details
|
[Node.js CI/build-1] โ
Success - Echo site details
As you can see one of them does not have the variables set up correctly. In the real scenario that causes jobs (and thus the whole workflow) to fail when running it with act.
This was fixed in #503. Unfortunately, a new release with the fix hasn't been released yet, but if you build act from master, it should result in only 2 builds.
Thanks for the update. As I'm not dealing with Go on a daily basis I'd rather wait for the next release than investing time in installing and learning the toolchain needed to build Go apps. I hope I will not have to wait too long.
Issue is stale and will be closed in 14 days unless there is new activity