Merge pull request #46 from AKruimink/version-2.0.0-prep #58
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: 'test-project' | |
on: | |
push: # Push always triggers after a merge | |
branches: | |
- master | |
- develop | |
pull_request: | |
# Defines environment variables | |
env: | |
NETCORE_VERSION: '8.0.x' | |
jobs: | |
build: | |
name: 'run-unit-tests' | |
runs-on: windows-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v3 | |
# Setup the .NET 8.0 SDK environment | |
- name: 'setup .NET SDK ${{ env.NETCORE_VERSION }}' | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.NETCORE_VERSION }} | |
# Restore all NuGet packages to ensure dependencies are available | |
- name: 'restore nuget packages' | |
working-directory: './src' | |
run: dotnet restore | |
# Run the project unit tests | |
- name: 'run project tests' | |
working-directory: './src' | |
run: dotnet test --configuration Release |