How to test GitHub Actions Locally!!!
Вставка
- Опубліковано 10 вер 2024
- Are you a developer today that loves to use GitHub Actions but you are constantly interrupted as you wait for them to run in the GitHub portal, taking you out of your flow? What if you could test and debug GitHub Actions locally? In this video, we go over act, an open source project that lets you run and test GitHub actions locally
If you want to follow me on social media, here are some links
🦆 / isaacrlevin
🙀 github.com/isa...
📺 / isaacrlevin
👋 linktr.ee/isaa...
Take a look at the GitHub repo for act to learn more and install it on your machine!
github.com/nek...
#github #cli #commandline #developer #productivity #developertools #github #github-actions
Great vid, now I can test stuffs locally without making my commit history a mess.
Concise, and yet covered all the important stuff! Thanks for the boost on my project.
Great stuff man, exactly what I was looking for. Thanks!
can we run the entire workflow instead of running job? i am working on workflows which need other jobs to run first and use the output from other job.
Have you tried sending Slack notifications using act?
What if I use a secret from GitHub and not an env variable how will I test it out using act ?
Not following. act does not actually connect to GitHub. If you have a secret you have to make it accessible to act via a file, env variable or passing it in
@@isaacrlevin So how can I make it accessible to act via a file ?
@@KarimFayed-oy5oo make an env file with the secret inserted, make act utilize the env file as shown from the video. Don't specify your token via command as it can leave a trace in your bash/shell history unless your PAT has minimal permissions and a very-very short lifetime.
@@KarimFayed-oy5oo 11 min of the video
@@KarimFayed-oy5oo You put the secret in a file and point it 'export ENV_VAR = path/to/filetoken.json'
how did you get the file Icons on GitHub?
I use this browser extension github.com/homerchen19/github-file-icons