-
Notifications
You must be signed in to change notification settings - Fork 130
66 lines (57 loc) · 1.79 KB
/
System.Waf.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
name: System.Waf.CI
on:
push:
paths:
- 'src/*'
- 'src/System.Waf/**'
- 'src/Samples.UITest/**'
- '.github/workflows/**'
jobs:
build:
name: 🛠️ Build and test
runs-on: windows-latest
steps:
- name: 🔖 Check-out
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ⚙️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9'
- name: 🛠️ Build
run: dotnet build ./src/System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true
- name: 🕵️ Test
run: |
echo "## 🕵️ Test Results - System.Waf.sln" >> $Env:GITHUB_STEP_SUMMARY
dotnet test ./src/System.Waf/System.Waf.sln -c Release --no-build --logger GitHubActions
- name: 📦 Upload NuGet Packages
uses: actions/upload-artifact@v4
with:
name: Packages
if-no-files-found: error
path: |
src/System.Waf/System.Waf/**/*.nupkg
src/System.Waf/System.Waf/**/*.snupkg
- name: 🖥️ UI Test
run: |
echo "## 🕵️ Test Results - Samples.UITest.sln" >> $Env:GITHUB_STEP_SUMMARY
dotnet test ./src/Samples.UITest/Samples.UITest.sln --logger GitHubActions -maxCpuCount:1
- name: 📦 Upload UI Test results
uses: actions/upload-artifact@v4
if: always()
with:
name: UITestResults
if-no-files-found: ignore
path: |
out/Samples.UITest/
- name: 📦 Upload UI Test App logs
uses: actions/upload-artifact@v4
if: always()
with:
name: UITestAppLogs
if-no-files-found: ignore
path: |
~/AppData/Local/Waf Writer/Log/
~/AppData/Local/Waf Book Library/Log/
~/AppData/Local/Waf Information Manager/Log/