Skip to content

feat: add options, diagnostics, URL redaction, and the pipeline context #3

feat: add options, diagnostics, URL redaction, and the pipeline context

feat: add options, diagnostics, URL redaction, and the pipeline context #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
name: build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
# The .NET 8 runtime is needed to execute the net8.0 test target; the pinned
# SDK (net10) comes from global.json and drives the build.
dotnet-version: 8.0.x
global-json-file: global.json
- name: Restore
run: dotnet restore
# TreatWarningsAsErrors + AnalysisLevel=latest-recommended make the build itself the lint gate.
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: >-
dotnet test --configuration Release --no-build
--collect:"XPlat Code Coverage"
--logger "trx;LogFileName=test-results.trx"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: "**/test-results.trx"