Implemented PostBuildAction #114
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ '**', '!master' ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| env: | |
| working-directory: ./src | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@v4 | |
| # Install SDKs | |
| - name: Setup .NET 6 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 6.0.x | |
| - name: Setup .NET 7 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 7.0.x | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup .NET 9 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| # Build and Test | |
| - name: Restore dependencies | |
| run: dotnet restore --verbosity minimal | |
| working-directory: ${{env.working-directory}} | |
| - name: Build solution | |
| run: dotnet build --configuration Release --no-restore --verbosity minimal | |
| working-directory: ${{env.working-directory}} | |
| - name: Test solution | |
| run: dotnet test --configuration Release --no-restore --no-build --verbosity minimal | |
| working-directory: ${{env.working-directory}} |