chore(deps): update codecov/codecov-action action to v5.3.1 #642
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: build | |
on: | |
push: | |
branches: | |
- '**' | |
env: | |
DOTNET_NOLOGO: true # https://github.com/actions/setup-dotnet#environment-variables-to-use-with-dotnet | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
- macos-13 | |
- windows-2022 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }} | |
- uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0 | |
with: | |
dotnet-version: | | |
6 | |
8 | |
dotnet-quality: ga | |
- name: restore packages | |
run: dotnet restore | |
- name: build | |
run: dotnet build --no-restore | |
- name: test | |
run: dotnet test --no-build | |
- name: Codecov | |
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1 | |
with: | |
files: '**/TestResults/*/*.cobertura.xml' | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
# Catch-all required check for test matrix | |
success: | |
needs: | |
- test | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 1 | |
if: always() | |
steps: | |
- name: Fail for failed or cancelled lint tests | |
if: | | |
needs.lint.result == 'failure' || | |
needs.lint.result == 'cancelled' | |
run: exit 1 | |
- name: Fail for failed or cancelled test tests | |
if: | | |
needs.test.result == 'failure' || | |
needs.test.result == 'skipped' | |
run: exit 1 | |