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

[REQUEST] Study possibility to run GitHub actions locally #431

Closed
ghost opened this issue Oct 16, 2020 · 4 comments · Fixed by #453
Closed

[REQUEST] Study possibility to run GitHub actions locally #431

ghost opened this issue Oct 16, 2020 · 4 comments · Fixed by #453

Comments

@ghost
Copy link

ghost commented Oct 16, 2020

Is your feature request related to a problem? Please describe.
This a split of #416

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Study possibility to run locally github actions
https://github.com/nektos/act

@ghost ghost self-assigned this Oct 16, 2020
@ghost ghost changed the title [REQUEST] Study possibility to run locally github actions [REQUEST] Study possibility to run GitHub actions locally Oct 19, 2020
@ghost
Copy link
Author

ghost commented Oct 21, 2020

It's actually super simple to use act. We have a bug though so I'll see after refactoring the GitHub workflows in the Docker image PR. #384

@e-lo
Copy link

e-lo commented Oct 21, 2020

This seems like a good solution to some of my other requests.

I was able to download and install act very easily but got this error when running it (not sure it is same one you all got)

(base) elizabeth@Elizabeths-MacBook-Pro-2 gtfs-validator % act
[Java CI/build   ] 🚀  Start image=node:12.6-buster-slim
[End to end/build] 🚀  Start image=node:12.6-buster-slim
[Java CI/build   ]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[End to end/build]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Java CI/build   ]   🐳  docker cp src=/Users/elizabeth/Documents/urbanlabs/CA Interoperable/gtfs-validator/. dst=/github/workspace
[End to end/build]   🐳  docker cp src=/Users/elizabeth/Documents/urbanlabs/CA Interoperable/gtfs-validator/. dst=/github/workspace
Error: error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.40/exec/0065c54f6c29faca7249ab278e81e5e395f6b86dee472800ab0746297de34754/start": net/http: HTTP/1.x transport connection broken: unsupported transfer encoding: "identity"

@ghost
Copy link
Author

ghost commented Oct 23, 2020

So, syncing the latest version of master and passing the command act -j run-on-data
Now works fine with the validator running on all datasets until the persist artifact steps...
image

... which is a known issue of act
nektos/act#329

The files in question can be manually collected inside the container.
Datasets .zip files are present as well as validation reports .json in the output folder
image

I think that's as far as we can go presently. Do you think @e-lo that would be enough to close this issue after updating the documentation?

@ghost
Copy link
Author

ghost commented Oct 26, 2020

@e-lo the documentation has been updated. Let us know as we will merge it for release v1.3.0 that should happen today no earlier than 14:00 EST

See https://github.com/MobilityData/gtfs-validator/tree/local-github-action#via-run-on-data-github-workflow-job

@ghost ghost closed this as completed in #453 Oct 26, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant