Skip to content

Update publish/release actions-workflows #97

Update publish/release actions-workflows

Update publish/release actions-workflows #97

Workflow file for this run

name: Test
on:
push:
branches-ignore: [main] # handled by snapshots...
tags-ignore:
- "v*.*.*" # handled by release.yml
pull_request:
workflow_call:
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build project
run: dotnet build --no-restore
- name: Run tests with coverage
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage
fail_ci_if_error: true