Skip to content

Bump Meziantou.Analyzer from 3.0.59 to 3.0.61 #4664

Bump Meziantou.Analyzer from 3.0.59 to 3.0.61

Bump Meziantou.Analyzer from 3.0.59 to 3.0.61 #4664

Workflow file for this run

name: "Test"
on:
pull_request:
merge_group:
concurrency:
group: ci-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
test_and_check_coverage:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: "Test"
working-directory: ImperatorToCK3.UnitTests
shell: pwsh
run: |
dotnet test --coverlet --coverlet-output-format lcov --coverlet-file-prefix irtock3
- name: "Locate coverage report"
id: coverage_report
shell: pwsh
run: |
$coverageFile = Get-ChildItem "ImperatorToCK3.UnitTests/bin/Debug/net10.0/TestResults/irtock3.coverage*.info" |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1 -ExpandProperty FullName
if (-not $coverageFile) {
throw "Coverage report not found."
}
"path=$coverageFile" >> $env:GITHUB_OUTPUT
- name: "Publish coverage report to coveralls.io"
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage_report.outputs.path }}
format: lcov
debug: true
test:
strategy:
matrix:
os: [[self-hosted, windows], macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: "Setup Dotnet for use with actions"
# don't run on self-hosted Windows
if: ${{ !contains(toJSON(matrix.os), 'windows') || !contains(toJSON(matrix.os), 'self-hosted') }}
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: "Test"
working-directory: ImperatorToCK3.UnitTests
run: |
dotnet test