Automatically update Dotnet SDK #78
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] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| env: | |
| DOTNET_NOLOGO: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.x | |
| - name: Install tools | |
| run: dotnet tool restore | |
| - name: Restore dependencies | |
| run: dotnet restore src/TrophyApi/TrophyApi.csproj | |
| - name: Build | |
| run: dotnet build src/TrophyApi/TrophyApi.csproj --no-restore -c Release | |
| - name: Restore test dependencies | |
| run: dotnet restore src/TrophyApi.Test/TrophyApi.Test.csproj | |
| - name: Build tests | |
| run: dotnet build src/TrophyApi.Test/TrophyApi.Test.csproj --no-restore -c Release | |
| - name: Test | |
| run: dotnet test src/TrophyApi.Test/TrophyApi.Test.csproj --no-restore --no-build -c Release |