-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.11 KB
/
ci-build.yml
File metadata and controls
50 lines (40 loc) · 1.11 KB
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
49
50
name: CI Build
on:
push:
branches:
- master
- develop
- enhancements
pull_request:
branches:
- master
- develop
- enhancements
permissions:
contents: read
concurrency:
group: ci-build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ApiHealthDashboard.sln
- name: Build solution
run: dotnet build ApiHealthDashboard.sln -c Release --no-restore
- name: Run tests
run: dotnet test ApiHealthDashboard.sln -c Release --no-build --logger "trx;LogFileName=test-results.trx" --results-directory ./TestResults
- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-results
path: TestResults/**/*.trx
if-no-files-found: warn