-
Notifications
You must be signed in to change notification settings - Fork 1
.NET
GitHub Actions can automate software workflows using a .yml format. It can be used to build, test and deploy applications. Our CI/CD for .NET applications is divided into three parts:
- Building and testing
- Code quality with SonarCloud
- Deploying to Docker Hub
After creating a pull request or pushing directly to master the Build and Test workflow will trigger. This workflow runs the following commands:
- Build the application:
dotnet build
- Run all unit tests:
dotnet test
The results can be viewed in the logs if needed. This workflow is required to pass. If it does not pass, the pull request will be blocked.
The next workflow also triggers on a pull request and will automatically run on the master branch. This workflow runs SonarCloud and shows the result, either in the pull request or at https://sonarcloud.io/projects, where an organization for IPost has been made. Every IPost project with a SonarCloud integration can be viewed there.
This workflow is also required to pass. If it does not pass, the pull request will be blocked.
This workflow only triggers when a new release is created in the repository. This workflow connects to Docker Hub and uploads an image based on the master branch. This image can then for example be used to run locally or to be deployed on a VM. Pull requests do not depend on this workflow, as it is only triggered by manual releases.