Skip to content

Update actions/setup-dotnet action to v5.2.0 #1921

Update actions/setup-dotnet action to v5.2.0

Update actions/setup-dotnet action to v5.2.0 #1921

Workflow file for this run

name: Unit tests
# Workflow Trigger
on:
# Trigger the workflow on a pull request to any branch, ignoring changes to /docs
pull_request:
paths-ignore:
- 'docs/**'
# Trigger the workflow on pushes to the master branch, ignoring changes to /docs
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
Test:
name: Run unit tests
strategy:
fail-fast: false
matrix:
os: [
windows-2022, windows-2025,
ubuntu-22.04, ubuntu-24.04
# Cake.Recipe currently does not support macOS 14 or 15 (M1)
]
runs-on: ${{ matrix.os }}
steps:
- name: Get the sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Install .NET
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
# .NET 5 required for GitVersion
# .NET 7 required for Cake.Recipe
dotnet-version: |
5.x
7.x
8.x
9.x
10.x
# Ubuntu 24.04 does not have Mono installed, which is Required for Cake.Recipe
- name: Install Mono
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: sudo apt-get install mono-complete
- name: Test
run: ./build.sh --target=Test
shell: bash