Skip to content

Push new pre-release & release update check #363

Push new pre-release & release update check

Push new pre-release & release update check #363

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