forked from nunit/nunit-console
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (78 loc) · 2.17 KB
/
AppveyorConversion.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
name: Build
on:
push:
branches-ignore:
- "azure-*"
paths-ignore:
- "*.txt"
- "*.md"
# pull_request:
# branches-ignore:
# - "azure-*"
# paths-ignore:
# - "*.txt"
# - "*.md"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
# os: [ubuntu-latest, windows-latest]
fail-fast: false
env:
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }}
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
6.0.x
8.0.100
- name: 🔧 Install dotnet tools
run: dotnet tool restore
- name: 🍰 Run cake test
shell: pwsh
run: dotnet cake --target=Test --configuration=Release
- name: 🪵 Upload build logs
if: always()
uses: actions/upload-artifact@v4
with:
name: NUnitConsoleLogs
# This path is defined in build-settings.cake
path: "*.binlog"
if-no-files-found: error
retention-days: 1
- name: 🍰 Run cake package
if: always()
shell: pwsh
run: dotnet cake --target=BuildTestAndPackage --configuration=Release
- name: 🍰 Run cake buildtestandpackage
if: always()
shell: pwsh
run: dotnet cake --target=BuildTestAndPackage --configuration=Release
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: nupkg-files
# path: package/*.nupkg
# - name: Upload MSI artifacts
# uses: actions/upload-artifact@v3
# with:
# name: msi-files
# path: package/*.msi
# - name: Upload ZIP artifacts
# uses: actions/upload-artifact@v3
# with:
# name: zip-files
# path: package/*.zip