-
Notifications
You must be signed in to change notification settings - Fork 14
79 lines (70 loc) · 2.29 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: nmoneys build
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
env:
VERBOSITY: q
CONFIGURATION: Release
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.306
#- name: Info
# run: dotnet --info
- name: Restore
shell: pwsh
run: ./build.ps1 -task Restore -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Compile
shell: pwsh
run: ./build.ps1 -task Compile -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Test
shell: pwsh
run: ./build.ps1 -task Test -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Pack
shell: pwsh
run: ./build.ps1 -task Pack -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Copy-Artifacts
shell: pwsh
run: ./build.ps1 -task CopyArtifacts -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Test Reporter
if: ${{ !env.ACT }}
uses: dorny/[email protected]
with:
name: Test Report
path: "./release/TestResults/*.trx"
reporter: dotnet-trx
fail-on-error: true
- name: Upload trx
uses: actions/upload-artifact@v3
with:
name: tests-results
path: |
./release/TestResults/*.trx
./release/TestResults/*.xml
- name: Upload bin
uses: actions/upload-artifact@v3
with:
name: bin
path: |
./release/*.xml
./release/*.pdb
./release/*.dll
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: packages
path: ./release/*.nupkg
- name: Upload Codecov coverage
uses: codecov/codecov-action@v3
with:
files: ./release/TestResults/coverage.cobertura.xml
fail_ci_if_error: true
- name: Upload Coveralls coverage
uses: coverallsapp/github-action@v2
with:
files: ./release/TestResults/coverage.cobertura.xml
format: cobertura