-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (38 loc) · 1.44 KB
/
project-build.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
name: 'Build and Test'
on: [push, pull_request_target]
jobs:
build-and-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Unit tests
run: dotnet test -c Release --no-restore --no-build -v=normal --collect:"XPlat Code Coverage"
- name: Performance tests
run: dotnet test -c Release --no-restore --no-build -v=normal --filter TestCategory="PerfTests"
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload NoStringEvaluating nuget packages artifacts
uses: actions/upload-artifact@v4
with:
name: service-nuget-packages
path: bin/NoStringEvaluating/Release/*.nupkg
retention-days: 1
- name: Upload NoStringEvaluating.DI nuget packages artifacts
uses: actions/upload-artifact@v4
with:
name: service-di-nuget-packages
path: bin/NoStringEvaluating.Extensions.Microsoft.DependencyInjection/Release/*.nupkg
retention-days: 1
- name: Upload performance tests artifacts
uses: actions/upload-artifact@v4
with:
name: performance-tests
path: bin/NoStringEvaluating.Tests/Release/PerformanceTestsResults/PerformanceTests.txt
retention-days: 90