Skip to content

ci: add azure pipeline #19

ci: add azure pipeline

ci: add azure pipeline #19

Workflow file for this run

on: [push, pull_request]
permissions:
id-token: write
contents: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x"
- name: Lint
run: dotnet format --verify-no-changes --verbosity diagnostic
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: |
dotnet test --no-restore \
--verbosity normal \
--logger trx \
--results-directory ./test-results/ /p:CI=true \
tests/Application.UnitTests
- name: Test Reporter
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: NUnit Tests
path: "test-results/*.trx"
reporter: dotnet-trx