-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (37 loc) · 1.09 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
46
47
48
name: Admin - CI
on:
pull_request:
branches:
- main
paths-ignore:
- .github/settings.yml
workflow_dispatch:
env:
PROJECT_PATH: src/Presentation/UI/AdminUI/AdminUI.csproj
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 $PROJECT_PATH
- name: Build
run: dotnet build $PROJECT_PATH --no-restore --configuration Release
- name: Test
run: dotnet test $PROJECT_PATH --no-build --configuration Release --logger "trx;LogFileName=test-results.trx"
- 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