Skip to content

Merge branch 'dev' into main #73

Merge branch 'dev' into main

Merge branch 'dev' into main #73

name: 🛠️ PR - Build + Unit tests
on:
push:
branches: [ main ]
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
- '**/donations.json'
pull_request:
types: [review_requested, opened, reopened, synchronize]
branches:
- dev
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-2022 # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: StatisticsAnalysisTool.sln
Test_Project_Path: src\StatisticsAnalysisTool.UnitTests\StatisticsAnalysisTool.UnitTests.csproj
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check for build errors
if: ${{ matrix.configuration == 'Debug' }}
run: dotnet build src\StatisticsAnalysisTool
- name: Install dependencies
run: dotnet restore src\StatisticsAnalysisTool
- name: Install .NET (Debug)
if: ${{ matrix.configuration == 'Debug' }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- run: dotnet build src\StatisticsAnalysisTool
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
with:
# vs-version: '[17.1]'
msbuild-architecture: x64
- name: Execute unit tests
if: ${{ matrix.configuration == 'Debug' }}
run: dotnet test $env:Test_Project_Path