Skip to content

Bump Meziantou.Analyzer from 2.0.183 to 2.0.184 (#568) #1371

Bump Meziantou.Analyzer from 2.0.183 to 2.0.184 (#568)

Bump Meziantou.Analyzer from 2.0.183 to 2.0.184 (#568) #1371

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test_and_check_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v4
with:
global-json-file: 'global.json'
- name: "Restore tools"
run: dotnet tool restore
- name: "Run tests"
working-directory: commonItems.UnitTests
shell: pwsh
run: |
$env:CoverletOutput='./TestResults/coverage.info'
$env:CoverletOutputFormat='lcov'
dotnet test /p:CollectCoverage=true /p:IncludeTestAssembly=true /p:ExcludeByFile=**/Microsoft.NET.Test.Sdk.Program.cs /p:Exclude=[commonItems.UnitTests]*
- name: "Publish coverage report to coveralls.io"
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: commonItems.UnitTests/TestResults/coverage.info
test:
strategy:
matrix:
os: [[self-hosted, windows], macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v4
# don't run on self-hosted Windows
if: ${{ !contains(toJSON(matrix.os), 'windows') || !contains(toJSON(matrix.os), 'self-hosted') }}
with:
global-json-file: 'global.json'
- name: "Restore tools"
run: dotnet tool restore
- name: "Run tests"
working-directory: commonItems.UnitTests
run: dotnet test