-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (46 loc) · 1.12 KB
/
net-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
49
50
51
52
53
54
55
name: '[net] CI (.Net)'
on:
push:
branches:
- master
paths:
- '.github/workflows/net-ci.yml'
- 'net/**'
- 'Sales.Net.sln'
pull_request:
paths:
- '.github/workflows/net-ci.yml'
- 'net/**'
- 'Sales.Net.sln'
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Check Code
uses: actions/checkout@v4
- name: Set Up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore Solution
run: >-
dotnet restore
- name: Build Solution
run: >-
dotnet build --no-restore --configuration Debug
- name: Test Solution
run: >-
dotnet test --no-build --configuration Debug
--logger "trx;LogFileName=TestResults.trx"
- name: Upload Test Results
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
net/**/*.trx
!net/**/Sails.Tests.Shared/**/*.trx