Open vikmn opened 4 years ago
Same occurs for me (Windows 10, act
ver.0.2.9
).
I did not use the official example, but my own project file:
@kinafu I believe that it is related to this issue: https://github.com/nektos/act/issues/228
According to the project README: https://github.com/nektos/act#known-issues
MODULE_NOT_FOUND during docker cp command #228
- name: Checkout uses: actions/checkout@v2 with: path: "your-action-root-directory"
I'm still confused about what the action-root-directory
should be.
In my case, my folder is structured like this:
.github/
├── _dev
│ ├── event-data
│ │ ├── README.md
│ │ ├── pull-request.json
│ │ ├── push-develop.json
│ │ ├── push-test.json
│ │ └── workflow-dispatch.json
│ ├── .secrets
│ ├── .secrets.template
│ ├── README.md
│ ├── debugContext.sh
│ └── executeWorkflow.sh
├── actions
│ ├── ctf-changelist-sync
│ │ ├── dist
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── licenses.txt
│ │ │ └── sourcemap-register.js
│ │ ├── README.md
│ │ └── action.yml
│ └── sentry-add-release.sh
└── workflows
└── _scratch
├── debug-context.yml
├── dev-custom-action.yml
└── dev-workflow.yml
Note that was only an issue when I tried to create a new action inside of the .github/actions/
of an entirely separate repository (out of laziness)
In the end, I created a separate repo for my action & am able to execute a self referencing act
workflow.
I am just starting on trying to use act. However on cloning the repo and running act on a windows machine I get the following error Cannot find module '/github/workspace/\actions\actions-setup-node@v1\dist\index.js'
Full error log here
Is there something i am missing ?