Skip to content

Update to .NET 10

Update to .NET 10 #164

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
CI: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.x"
- name: Install dotnet-coverage
run: dotnet tool install -g dotnet-coverage
- name: Test with coverage
run: dotnet-coverage collect --output coverage.cobertura.xml --output-format cobertura "dotnet test"
- name: Update codecov
if: startsWith(github.repository, 'khellang/')
uses: codecov/codecov-action@v5
with:
files: coverage.cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false