Repository navigation
73 lines (61 loc) · 1.88 KB
/
Copy pathNUnit.Engine.Api.CI.yml
File metadata and controls
73 lines (61 loc) · 1.88 KB
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
name: NUnit.Engine.Api.CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions:
contents: read
checks: write
env:
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry
jobs:
ContinuousIntegration:
name: Continuous Integration Windows Build
runs-on: windows-latest
env:
MYGET_API_KEY: ${{ secrets.PUBLISH_MYGET_ORG }}
NUGET_API_KEY: ${{ secrets.PUBLISH_NUGET_ORG }}
CHOCO_API_KEY: ${{ secrets.PUBLISH_CHOCOLATEY_ORG }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_CP }}
steps:
- name: ⤵️ Checkout Source
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: 🛠️ Install dotnet tools
run: dotnet tool restore
- name: 🔨 Build, Test, Package and Publish to MyGet (Cake script decides)
run: dotnet cake --target=ContinuousIntegration --configuration=Release #--verbosity=diagnostic
# Upload packages
- name: 💾 Upload Packages
if: always()
uses: actions/upload-artifact@v7
with:
name: Packages
path: packages
# Need to set work directory and give testresult files differing names
# - name: 💾 Upload test results
# uses: actions/upload-artifact@v7
# with:
# name: TestResults (Windows)
# path: TestResults
# if: ${{ always() }}
# Need to implement test-reporter in NUnit
# - name: 🧪 Test Report
# if: ${{ always() }}
# uses: ./.github/actions/test-reporter
# with:
# name: "Tests (${{ runner.os }})"
# path: TestResults/**/*.trx
# fail-on-error: false
# token: ${{ secrets.GITHUB_TOKEN }}