Fixes xunit/xunit#2798: xUnit2007 code fix leads to CS8920 compiler error #96
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: xUnit.net Analyzers PR Build | |
on: | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ${{ matrix.os }} | |
env: | |
DOTNET_NOLOGO: true | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2022, ubuntu-22.04, macOS-12] | |
steps: | |
- name: Clone source | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Replace global.json | |
run: cp .github/workflows/.global.json global.json | |
shell: bash | |
- name: Install .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
- name: Get .NET information | |
run: dotnet --info | |
- name: Get Mono information | |
run: mono --version | |
if: ${{ matrix.os != 'windows-2022' }} | |
- name: "Build target: BuildAll" | |
run: dotnet run --project tools/builder --no-launch-profile -- BuildAll | |
- name: "Upload artifact: test-${{ matrix.os }}" | |
uses: actions/upload-artifact@v3.1.1 | |
with: | |
name: test-${{ matrix.os }} | |
path: artifacts/test | |
if: always() |