build: replace windows runner from 2019 to 2022 #351
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: CI / Automated testing | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
install-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET deps | |
uses: ./.github/workflows/composite/net | |
build-and-test: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
needs: install-deps | |
strategy: | |
fail-fast: false | |
matrix: | |
# Using macos-12 because we need Xcode 13.3 or later (macos-latest currently points at macos-11 which uses Xcode 13.2) | |
os: [ ubuntu-latest, windows-2022, macos-12 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET deps | |
uses: ./.github/workflows/composite/net | |
- name: Restore .NET Dependencies | |
run: dotnet restore --nologo --locked-mode | |
- name: Build | |
run: dotnet build -c Release --no-restore --nologo /p:CopyLocalLockFileAssemblies=true | |
- name: dotnet format | |
run: dotnet format --no-restore | |
- name: dotnet test | |
run: dotnet test -c Release --no-build --nologo | |