Create debugos.yml #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
SOLUTION: Place.sln | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '9.0.x' | |
- name: Cache NuGet packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Restore dependencies | |
run: make restore SOLUTION=${{ env.SOLUTION }} | |
- name: Build solution | |
run: make build SOLUTION=${{ env.SOLUTION }} | |
- name: Run unit tests | |
run: make test-unit SOLUTION=${{ env.SOLUTION }} | |
- name: Run integration tests | |
run: make test-integration SOLUTION=${{ env.SOLUTION }} |