Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with nektos/act #1805

Open
tcodes0 opened this issue Jun 26, 2024 · 1 comment
Open

Usage with nektos/act #1805

tcodes0 opened this issue Jun 26, 2024 · 1 comment

Comments

@tcodes0
Copy link

tcodes0 commented Jun 26, 2024

When using nektos/act to run the action locally in a container environment, the action fails to find any files to lint and reports a success. I tried using a .sh script to call cspell . instead of the action and the problem seems to persist. Attaching the logs I have from act. The symptoms are similar to #187 #182

[main/spellcheck            ] 🚀  Start image=catthehacker/ubuntu:act-latest
[main/spellcheck            ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[main/spellcheck            ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[main/spellcheck            ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[main/spellcheck            ]   ☁  git clone 'https://github.com/streetsidesoftware/cspell-action' # ref=v6.4.0
[main/spellcheck            ] ⭐ Run Main Checkout
[main/spellcheck            ]   🐳  docker cp src=/home/vacation/Desktop/tcodes0-go/. dst=/home/vacation/Desktop/tcodes0-go
[main/spellcheck            ]   ✅  Success - Main Checkout
[main/spellcheck            ] ⭐ Run Main Cspell
[main/spellcheck            ]   🐳  docker cp src=/home/vacation/.cache/act/[email protected]/ dst=/var/run/act/actions/[email protected]/
[main/spellcheck            ]   🐳  docker exec cmd=[node /var/run/act/actions/[email protected]/action/lib/main_root.cjs] user= workdir=
[main/spellcheck            ]   | cspell-action
[main/spellcheck            ]   | Push
[main/spellcheck            ]   | Files checked: 0, Issues found: 0 in 0 files.
[main/spellcheck            ]   | Done.
[main/spellcheck            ]   ✅  Success - Main Cspell
[main/spellcheck            ]   ⚙  ::set-output:: number_of_files_with_issues=0
[main/spellcheck            ]   ⚙  ::set-output:: files_with_issues=[]
[main/spellcheck            ]   ⚙  ::set-output:: result={"success":true,"number_of_issues":0,"number_of_files_checked":0,"files_with_issues":[]}
[main/spellcheck            ]   ⚙  ::set-output:: success=true
[main/spellcheck            ]   ⚙  ::set-output:: number_of_files_checked=0
[main/spellcheck            ]   ⚙  ::set-output:: number_of_issues=0
[main/spellcheck            ] Cleaning up container for job spellcheck
[main/spellcheck            ] 🏁  Job succeeded

happy to close/move if this is not related to the action but cspell itself.

@Jason3S
Copy link
Contributor

Jason3S commented Jun 26, 2024

@tcodes0,

Please include a copy of the workflow.

I have not tried nektos/act, but I will check it out.

Since it doesn't think any files have changed -- Files checked: 0, Issues found: 0 in 0 files. -- it doesn't think it has anything to do.
I'm guessing you need to set incremental_files_only to false, since the action is expecting the GitHub workflow to tell it what files have changed.

What happens when you run cspell . locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants