Skip to content

Consolidate .Admin, .Api and .Mobile #11

Consolidate .Admin, .Api and .Mobile

Consolidate .Admin, .Api and .Mobile #11

Workflow file for this run

name: Admin - CI
on:
pull_request:
branches:
- main
paths-ignore:
- .github/settings.yml
workflow_dispatch:
jobs:
build_and_test:
name: Admin - Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Restore
run: dotnet restore src/Presentation/UI/AdminUI/AdminUI.csproj
- name: Build
run: dotnet build --no-restore --configuration Release src/Presentation/UI/AdminUI/AdminUI.csproj
- name: Test
run: dotnet test --no-build --configuration Release --logger "trx;LogFileName=test-results.trx" src/Presentation/UI/AdminUI/AdminUI.csproj
- name: Check file existence
id: check_files
if: success() || failure()
uses: andstor/file-existence-action@v1
with:
files: "test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: steps.check_files.outputs.files_exists == 'true'
with:
name: Tests Results
path: test-results.trx
reporter: dotnet-trx