-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (35 loc) · 1.12 KB
/
admin-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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