DEV Community

Discussion on: GitHub Actions Hackathon 2021 Help Thread

Collapse
 
anthonyalvarez profile image
Anthony E. Alvarez

Hello from New York City,

This is my first attempt to make a Github Action but have some questions about Github actions for local development and testing.

  1. Can Github actions be created in a dev branch on a local repo on my PC and then uploaded to Github.com website?

  2. Can the Github actions be tested on a dev branch on the Github.com website?

  3. Finally can the Github actions in dev be merged into the master branch or is it best to create Action files on master branch using Github c.com website and avoid using dev branches and eventually merging with master?

Thank you.

Collapse
 
blackgirlbytes profile image
Rizèl Scarlett

Hi Anthony!!! Happy to answer these questions.

  1. Yes, you can create actions locally and then upload them to GitHub.com
  2. Yes, you can test them on a dev branch on GitHub.com
  3. You can treat GitHub Actions the same way you would treat your code. Feel free to add it to a dev branch and then merge it to your default branch afterwards.

Here's a reference on how to build your first workflow: dev.to/github/github-actions-build...