Update to .Net 8 #48
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: 'test-project' | |
on: | |
push: #Push always triggers after a merge | |
branches: | |
- master | |
- develop | |
pull_request: | |
# Defines environment variables | |
env: | |
NETCORE_VERSION: '3.1.200' | |
jobs: | |
build: | |
name: 'run-unit-tests' | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
#Setup the environment | |
- name: 'setup .NET Core SDK ${{ env.NETCORE_VERSION }}' | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.NETCORE_VERSION }} | |
# Restore all nuget packages to prevent issues during build | |
- 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 |