diff --git a/.actrc b/.actrc index 9e89b8b..3fbeb49 100644 --- a/.actrc +++ b/.actrc @@ -1 +1 @@ --P ubuntu-latest=nektos/act-environments-ubuntu:18.04 +-P ubuntu-latest=nektos/act-environments-ubuntu:18.04 diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index b045ade..2d14018 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -63,7 +63,7 @@ func (runner *runnerImpl) NewPlanExecutor(plan *model.Plan) common.Executor { for i, matrix := range matrixes { rc := runner.newRunContext(run, matrix) - if len(matrix) > 1 { + if len(matrixes) > 1 { rc.Name = fmt.Sprintf("%s-%d", rc.Name, i+1) } if len(rc.String()) > maxJobNameLen { diff --git a/pkg/runner/testdata/matrix/push.yml b/pkg/runner/testdata/matrix/push.yml index 549c85b..a975c1e 100644 --- a/pkg/runner/testdata/matrix/push.yml +++ b/pkg/runner/testdata/matrix/push.yml @@ -13,3 +13,13 @@ jobs: matrix: os: [ubuntu-18.04, macos-latest] node: [4, 6, 8, 10] + + test: + runs-on: ubuntu-latest + strategy: + matrix: + node: [8.x, 10.x, 12.x, 13.x] + steps: + - run: echo ${NODE_VERSION} | grep ${{ matrix.node }} + env: + NODE_VERSION: ${{ matrix.node }}