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

Running workflows locally on Act behave differently than running on Github #261

Closed
shaal opened this issue May 29, 2020 · 2 comments
Closed
Labels
area/action Relating to running an action kind/bug Something isn't working stale

Comments

@shaal
Copy link

shaal commented May 29, 2020

(Thank you for the explanation in #197 (comment))

I tested this workflow:
https://github.com/palantirnet/drupal-rector/blob/master/.github/workflows/local_package_functional_tests.yml

And found that when running the workflow in Github, every run: section inside 1 job, "forgets" the location changes that were done in a previous run.
For an example:
cd drupal in https://github.com/palantirnet/drupal-rector/blob/master/.github/workflows/packagist_package_run_rector.yml#L32
needs to run again in https://github.com/palantirnet/drupal-rector/blob/master/.github/workflows/packagist_package_run_rector.yml#L39
and run again in every run: after that.

But when I run the same script locally in act (using act -P ubuntu-latest=shivammathur/node:latest)
It does not "forget" the location in a previous run, which messes up the special setup needed for that test.

@cplee cplee added area/action Relating to running an action kind/bug Something isn't working labels May 29, 2020
@shaal
Copy link
Author

shaal commented Jul 5, 2020

How can I resolve this problem?

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2020

Issue is stale and will be closed in 7 days unless there is new activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/action Relating to running an action kind/bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants