[GH-ISSUE #669] Issue: actions copied into _actions do interfer with project #432

Closed
opened 2026-03-01 21:43:17 +03:00 by kerem · 1 comment
Owner

Originally created by @KnisterPeter on GitHub (May 6, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/669

Originally assigned to: @catthehacker on GitHub.

Act version

act version 0.2.21

Expected behaviour

If a project has workflows and uses act to execute them, there should be no need to change the project configuration.

Actual behaviour

Act copies the actions used in a workflow into the $HOME/_actions folder.
If typescript project contains a tsconfig.json like below, and the actions in _actions are written in typescript, a build will fail.

{
  "compilerOptions": {
    "rootDir": "./src"
  }
}

The compiler does take the _action/**/*.ts files into account, but they are not part of the rootDir.
It would be better to have the _actions outside of the projects home.

Originally created by @KnisterPeter on GitHub (May 6, 2021). Original GitHub issue: https://github.com/nektos/act/issues/669 Originally assigned to: @catthehacker on GitHub. ## Act version ```none act version 0.2.21 ``` ## Expected behaviour If a project has workflows and uses act to execute them, there should be no need to change the project configuration. ## Actual behaviour Act copies the actions used in a workflow into the `$HOME/_actions` folder. If typescript project contains a `tsconfig.json` like below, and the actions in `_actions` are written in typescript, a build will fail. ```json { "compilerOptions": { "rootDir": "./src" } } ``` The compiler does take the `_action/**/*.ts` files into account, but they are not part of the `rootDir`. It would be better to have the `_actions` outside of the projects home.
Author
Owner

@papb commented on GitHub (May 23, 2021):

In my case, I have a lint workflow that is trying to lint source code from actions:

_actions/actions-setup-node@v1/jest.config.js:2:1
✖    2:1   Expected indentation of 1 tab but found 2 spaces.                         indent
✖    3:1   Expected indentation of 1 tab but found 2 spaces.                         indent

[...] many more...

I also have a test workflow that is trying to run a test from an action:

[CI/test-2] ⭐  Run npm run ava
| 
|   [...]
| 
| 
|   Uncaught exception in _actions/actions-setup-node@v1/__tests__/authutil.test.ts
| 
|   ✖ _actions/actions-setup-node@v1/__tests__/authutil.test.ts exited with a non-zero exit code: 1
|   ✖ _actions/actions-setup-node@v1/__tests__/installer.test.ts exited with a non-zero exit code: 1
|   ✔ test › test.ts › foo
|   ✔ test › test.ts › bar
|   ─
| 
|   2 tests passed
|   2 uncaught exceptions
<!-- gh-comment-id:846497775 --> @papb commented on GitHub (May 23, 2021): In my case, I have a lint workflow that is trying to lint source code from actions: ``` _actions/actions-setup-node@v1/jest.config.js:2:1 ✖ 2:1 Expected indentation of 1 tab but found 2 spaces. indent ✖ 3:1 Expected indentation of 1 tab but found 2 spaces. indent [...] many more... ``` I also have a test workflow that is trying to run a test from an action: ``` [CI/test-2] ⭐ Run npm run ava | | [...] | | | Uncaught exception in _actions/actions-setup-node@v1/__tests__/authutil.test.ts | | ✖ _actions/actions-setup-node@v1/__tests__/authutil.test.ts exited with a non-zero exit code: 1 | ✖ _actions/actions-setup-node@v1/__tests__/installer.test.ts exited with a non-zero exit code: 1 | ✔ test › test.ts › foo | ✔ test › test.ts › bar | ─ | | 2 tests passed | 2 uncaught exceptions ```
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#432
No description provided.