Skip to content

Support migrating from MSTest v4 #163

Support migrating from MSTest v4

Support migrating from MSTest v4 #163

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
NUGET_CERT_REVOCATION_MODE: offline
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup .NET 8
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- run: dotnet build
- run: dotnet test src/AwesomeAssertions.Analyzers.Tests --configuration Release --filter 'TestCategory=Completed' /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
- run: dotnet pack src/AwesomeAssertions.Analyzers/AwesomeAssertions.Analyzers.csproj
- name: Check for coverage file existence
id: check_files
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3
with:
files: "src/AwesomeAssertions.Analyzers.Tests/coverage.cobertura.xml"
- name: coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2
if: steps.check_files.outputs.files_exists == 'true' && matrix.os == 'ubuntu-latest'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: src/AwesomeAssertions.Analyzers.Tests/coverage.cobertura.xml