Consolidate .Admin, .Api and .Mobile #9
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: 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 |