Setup GitHub Actions manually
You can do this via the web interface of GitHub or you can clone the project locally, do it there and then push the changes to GitHub.
- Create a folder in the root of your repository called
.github/workflows. - Create a YAML file in it.
- The name of the file does not matter.
- The extension must be either
.yamlor.yml. - I often call it
.github/workflows/ci.yaml. - For content see a minimal example.
- Commit the changes.
- If you worked locally on your computer then push the changes to GitHub.
- Once you did this visit the
Actionstab of your repository on GitHub. After a few seconds you should see the indication that a job is running and then after a while you will see the results.
- Next we’ll see examples for these YAML files.