Skip to content

dotnet: add docfx

dotnet: add docfx #5

Workflow file for this run

name: Dotnet - CI
on:
push:
paths:
- 'runtime/dotnet/**'
- '!**/*.md'
branches:
- 'develop'
- 'main'
- 'release/**'
pull_request:
paths:
- 'runtime/dotnet/**'
- '!**/*.md'
branches:
- 'develop'
- 'main'
- 'release/**'
workflow_dispatch:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
test:
name: Build & Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
#- macos-latest
- ubuntu-24.04
#- windows-2022
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Set Up .NET
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: |
10.0.x
- name: Build
run: |
cd runtime/dotnet/HelloWorld
dotnet build -c Release /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false
- name: Unit Tests
run: |
cd runtime/dotnet/HelloWorld
dotnet test -c Release --no-build
- name: Test run
run: |
cd runtime/dotnet/HelloWorld
find bin -ls
echo -----------------------
bin/Release/net10.0/HelloWorld