Update dependency dotnet-sdk to v8 #511
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: Unit tests | |
# Workflow Trigger | |
on: | |
# Trigger the workflow on a pull request to any branch | |
pull_request: | |
# Triggers the workflow in the event there is a push to master | |
push: | |
branches: | |
- master | |
jobs: | |
Test: | |
name: Run unit tests | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ | |
windows-2019, windows-2022, | |
ubuntu-20.04, ubuntu-22.04, | |
# Cake.Recipe currently does not support macOS 14 (M1) | |
macos-12, macos-13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Get the sources | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
- name: Install .NET | |
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4 | |
with: | |
# .NET 5 required for GitVersion | |
dotnet-version: | | |
5.x | |
6.x | |
7.x | |
8.x | |
- name: Test | |
run: ./build.sh --target=Test | |
shell: bash |