Skip to content

Reliability, app-only auth and async modernization #6

Reliability, app-only auth and async modernization

Reliability, app-only auth and async modernization #6

Workflow file for this run

name: CI
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master ]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Build.props') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -warnaserror
- name: Check formatting
run: dotnet format --verify-no-changes --no-restore
- name: Run tests with coverage
run: dotnet test --no-build --collect:"XPlat Code Coverage" --results-directory:./TestResults/
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: ./TestResults/
retention-days: 14
- name: Audit NuGet packages
run: dotnet restore --force /p:NuGetAudit=true /p:NuGetAuditMode=all /p:NuGetAuditLevel=moderate