$ act
[Node.js CI/test] 🧪 Matrix: map[node-version:12.x]
[Node.js CI/test] 🚀 Start image=node:12.6-buster-slim
panic: runtime error: index out of range [1] with length 0
goroutine 18 [running]:
github.com/nektos/act/pkg/runner.newRemoteAction(0x0, 0x0, 0x0)
/home/runner/work/act/act/pkg/runner/step_context.go:382 +0x1a9
i'm getting this error, my yml file is like above
name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- working-directory: ./test
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
test
subdir from the root
Object is missing property run required by property working-directory.
working-directory
under the steps, i did this and it worked)
defaults:
run:
working-directory: test
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
},
"editor.autoIndent": "full"
},
--detect-event Use first event type from workflow as event that triggered the workflow