Skip to content

chore: synced file(s) with prom-client-net/prom-client-tmpl #24

chore: synced file(s) with prom-client-net/prom-client-tmpl

chore: synced file(s) with prom-client-net/prom-client-tmpl #24

Workflow file for this run

name: Build
on:
pull_request:
branches:
- "main"
workflow_dispatch:
workflow_call:
jobs:
build:
name: Build & Test
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: Build
run: dotnet build -c Release -p:ContinuousIntegrationBuild=true
- name: Run tests with Coverage
run: dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover
- name: Publish to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}