Fix error: The process cannot access the file because it is being use… #181
Workflow file for this run
This file contains 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: [Debug, Release] | |
runs-on: windows-2022 | |
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: 🏗 dotnet restore | |
run: dotnet restore src\StatisticsAnalysisTool | |
- name: 🛠 dotnet build | |
run: dotnet build src\StatisticsAnalysisTool --no-restore | |
- name: 🧪 Execute unit tests (Only debug) | |
if: ${{ matrix.configuration == 'Debug' }} | |
run: dotnet test $env:Test_Project_Path |