The term for automatically testing, building, and deploying your project is Continuous Integration, or CI for short.
The configuration for CI, we commonly call a CI-workflow.
To get started creating your workflow, you need 3 things:
- A Unity project
- A Git host (GitHub, GitLab, your private server, etc.)
- A CI system (GitHub Actions, GitLab pipelines, CircleCI, TravisCI, Jenkins, etc.)
Preparing the project
Create a repository on your chosen Git host and follow their instructions to commit and push your project.
Be sure to ignore any automatically generated files, by adding the reference .gitignore file to the root of your project. Please note that you may have to extend this file to ignore the temporary files created by the runners, as the creation of these temporary files may cause a runners' local branch to become dirty (more info here):
Two common temporary folders that are created by GameCI are
CodeCoverage. You can
ignore them by adding the following lines to your
# Ignore temporaries from GameCI
You are now ready to create a workflow! Choose the CI system you chose in the menu on the left.