mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1300] Doesn't "pull or build the necessary images" when testing Cypress action #703
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GeorgeXCV on GitHub (Aug 10, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1300
Bug report info
Command used with act
Describe issue
I'm trying to test this Github workflow but it just won't run, always complains about missing dependencies. I thought the point of this project was it took care of that? Its looking like i might have to make Dockerfile or change the workflow? But then at that point I have different workflow which won't won't be used as not using Docker in the repo...
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
Also tried:
And:
@github-actions[bot] commented on GitHub (Sep 10, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@alessbell commented on GitHub (Sep 15, 2022):
Thanks for the maintainers' work on
act, it's saved me a ton of time 🙇I've also seen this error and have tried a number of workarounds, including running with the
catthehacker/ubuntu:full-latestimage, but when I do I get the following error instead:@github-actions[bot] commented on GitHub (Oct 16, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@mixn commented on GitHub (Dec 7, 2022):
Issue is stale and will be closed in 14 days unless there is new activity.
…will forever haunt me in my dreams.
@andreifilip123 commented on GitHub (Dec 12, 2022):
This issue is still happening
@ChristopherHX commented on GitHub (Dec 12, 2022):
Could you provide a link to a public repository with this issue? Otherwise I wouldn't be able to help you to fix the potential bug. I add a stale exempt for you, I'm not a fan of this stale bot.
@andreifilip123 commented on GitHub (Dec 13, 2022):
Thank you !
Here's the example repo:
https://github.com/andreifilip123/cypress-act
I added the .actrc (even tho I think it's not used) & docker.compose.yml for the artifact server (solution found in a different issue)
@ChristopherHX commented on GitHub (Dec 13, 2022):
@andreifilip123 Your sample has no yarn start script? I get:
Via
git clone https://github.com/nektos/act && cd act && go build && cd .. && git clone https://github.com/andreifilip123/cypress-act && cd cypress-act && ../act/act -v -P ubuntu-latest=cypress/browsers:node18.12.0-chrome107 workflow_dispatchyarn start is provided to the cypress action as an input of your workflow.
The dependency error has been resolved by using the correct docker image for cypress via
-P ubuntu-latest=cypress/browsers:node18.12.0-chrome107@andreifilip123 commented on GitHub (Dec 13, 2022):
You're right, the repo I provided doesn't have yarn start 😅 Anyway, the issue I had with dependencies is solved by
-P ubuntu-latest=cypress/browsers:node18.12.0-chrome107. I thought I need to use the ubuntu-act image. Thanks for your help!@sneko commented on GitHub (Jan 18, 2023):
For me it's hard to assume
actdid not bring improvements while I'm using a custom image.Except if there is a watcher for
actimages that rebuild one with browsers stuff, I won't go this way.The solution I use for now is to bring a conditional step in my workflow:
(I had playwright+cypress so I'm using the helper from Playwright, but I guess Cypress also has a
npxscript?)(I use
--reusesoapt-getcommands are partially run each time)