Bump InnoDependencyInstaller from a186f68 to fa92d20
#4693
Workflow file for this run
This file contains hidden or 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: "Test" | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| merge_group: | |
| concurrency: | |
| group: ci-tests-${{ github.ref }}-1 | |
| cancel-in-progress: true | |
| jobs: | |
| test_and_check_coverage: | |
| runs-on: [self-hosted, linux] | |
| env: | |
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
| 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: "Cache NuGet packages" | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ env.NUGET_PACKAGES }} | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets', '**/global.json', '**/NuGet.Config', '**/nuget.config') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - 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 }} | |
| env: | |
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
| 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: "Cache NuGet packages" | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ env.NUGET_PACKAGES }} | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets', '**/global.json', '**/NuGet.Config', '**/nuget.config') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: "Test" | |
| working-directory: ImperatorToCK3.UnitTests | |
| run: | | |
| dotnet test |