Skip to content

chore(deps): update dependency ubuntu to v24 #656

chore(deps): update dependency ubuntu to v24

chore(deps): update dependency ubuntu to v24 #656

Workflow file for this run

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@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.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 test tests
if: |
needs.test.result == 'failure' ||
needs.test.result == 'skipped'
run: exit 1