Push new pre-release & release update check #363
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: Build + Unit tests | |
| on: | |
| pull_request: | |
| types: [review_requested, opened, reopened, synchronize] | |
| branches: | |
| - dev | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/*.md" | |
| - "**/*.gitignore" | |
| - "**/*.gitattributes" | |
| - "**/donations.json" | |
| jobs: | |
| build: | |
| if: "!contains(github.event.head_commit.message, '--wip')" | |
| strategy: | |
| matrix: | |
| configuration: [Release] | |
| runs-on: windows-2022 | |
| env: | |
| Solution_Path: src\StatisticsAnalysisTool.sln | |
| Test_Project_Path: src\StatisticsAnalysisTool.UnitTests\StatisticsAnalysisTool.UnitTests.csproj | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET 10 SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| global-json-file: src/global.json | |
| - name: dotnet restore | |
| run: dotnet restore $env:Solution_Path | |
| - name: dotnet build | |
| run: dotnet build $env:Solution_Path --configuration ${{ matrix.configuration }} --no-restore | |
| - name: Execute unit tests | |
| run: dotnet test $env:Test_Project_Path --configuration ${{ matrix.configuration }} --no-build |