-
Notifications
You must be signed in to change notification settings - Fork 152
118 lines (94 loc) · 3.21 KB
/
NUnitConsoleAndEngine.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: NUnitConsoleAndEngine.CI
on:
push:
branches:
- main
- release
- version3x
pull_request:
env:
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry
jobs:
build-windows:
name: Windows Build
runs-on: windows-latest
steps:
- name: ⤵️ Checkout Source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
with:
# global-json-file: global.json
dotnet-version: |
2.1.x
3.1.x
5.0.x
8.0.100
- name: 🛠️ Install dotnet tools
run: dotnet tool restore
- name: 🔨 Build and Test
run: dotnet tool run dotnet-cake --target=Test --test-run-name=Windows --configuration=Release
# If you need to get more verbose logging, add the following to the dotnet-cake above: --verbosity=diagnostic
# Wait with this until package errors (tests following packaging) are all fixed
# - name: 📦 Package
# run: dotnet tool run dotnet-cake --target=Package
# - name: 💾 Upload build artifacts
# uses: actions/upload-artifact@v4
# with:
# name: Package
# path: package
# - name: 💾 Upload test results
# uses: actions/upload-artifact@v4
# with:
# name: Test results (Windows)
# path: test-results
# # Use always() to always run this step to publish test results when there are test failures
# if: ${{ always() }}
# build-linux:
# name: Linux Build
# runs-on: ubuntu-latest
# steps:
# - name: ⤵️ Checkout Source
# uses: actions/checkout@v4
# - name: 🛠️ Setup .NET
# uses: actions/setup-dotnet@v4
# with:
# global-json-file: global.json
# - name: 🛠️ Install F#
# run: sudo apt-get install fsharp
# - name: 🛠️ Install dotnet tools
# run: dotnet tool restore
# - name: 🔨 Build and Test
# run: dotnet tool run dotnet-cake --target=Test --test-run-name=Linux --configuration=Release
# - name: 💾 Upload test results
# uses: actions/upload-artifact@v4
# with:
# name: Test results (Linux)
# path: test-results
# # Use always() to always run this step to publish test results when there are test failures
# if: ${{ always() }}
# build-macos:
# name: MacOS Build
# runs-on: macos-14
# steps:
# - name: ⤵️ Checkout Source
# uses: actions/checkout@v4
# - name: 🛠️ Setup .NET
# uses: actions/setup-dotnet@v4
# with:
# global-json-file: global.json
# dotnet-version: 6.x
# - name: 🛠️ Install dotnet tools
# run: dotnet tool restore
# - name: 🔨 Build and Test
# run: dotnet tool run dotnet-cake --target=Test --test-run-name=Linux --configuration=Release
# - name: 💾 Upload test results
# uses: actions/upload-artifact@v4
# with:
# name: Test results (macOS)
# path: test-results
# # Use always() to always run this step to publish test results when there are test failures
# if: ${{ always() }}