move cs code of md file to source.md #547
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Avoid shallow clone for Nerdbank.GitVersioning | |
fetch-depth: 0 | |
- run: "echo 'SemVer2: ${{ steps.nbgv.outputs.SemVer2 }}'" | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Install .NET workloads | |
run: dotnet workload install wasm-tools | |
- uses: dotnet/nbgv@master | |
id: nbgv | |
with: | |
setAllVars: true | |
setCommonVars: true | |
- name: Restore NuGet Packages & Tools | |
run: dotnet run --project build -c Release --no-launch-profile -- restore restore-tools | |
- name: Build | |
run: dotnet run --project build -c Release --no-launch-profile -- --configuration Debug --framework net9.0 build | |
- name: Run tests | |
run: dotnet run --project build -c Release --no-launch-profile -- --configuration Debug --framework net9.0 coverage | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
name: codecov-bot | |
file: artifacts/tests/output/*.xml | |
flags: unit | |
# fail_ci_if_error: true |