-
Notifications
You must be signed in to change notification settings - Fork 0
116 lines (113 loc) · 2.89 KB
/
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
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActionsSteps (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_ci --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------
name: ci
on:
push:
branches:
- 'master'
- 'next'
- 'feature/*'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'next'
permissions:
actions: read
checks: read
contents: read
deployments: read
id-token: none
issues: write
discussions: none
packages: none
pages: none
pull-requests: write
repository-projects: none
security-events: none
statuses: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
clean: 'false'
fetch-depth: '0'
- name: Fetch all history for all tags and branches
run: |
git fetch --prune
- name: 🔨 Use .NET 8 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.101'
- name: 🎁 dotnet tool restore
run: |
dotnet tool restore
- name: Workloads
id: workloads
run: |
dotnet nuke Workloads --skip
- name: 🎁 Restore
id: restore
run: |
dotnet nuke Restore --skip
- name: ⚙ Build
id: build
run: |
dotnet nuke Build --skip
- name: 🚦 Test
id: test
run: |
dotnet nuke Test TriggerCodeCoverageReports GenerateCodeCoverageReportCobertura GenerateCodeCoverageBadges GenerateCodeCoverageSummary GenerateCodeCoverageReport --skip
- name: 📦 Pack
id: pack
run: |
dotnet nuke Pack --skip
- name: Git Hub Actions
id: gitHubActions
run: |
dotnet nuke GitHubActions --skip
- name: 🐿 Publish Coverage
uses: codecov/[email protected]
with:
name: 'actions-${{ matrix.os }}'
- name: 🏺 Publish logs
if: always()
uses: actions/[email protected]
with:
name: 'logs'
path: 'artifacts/logs/'
- name: 🏺 Publish coverage data
if: always()
uses: actions/[email protected]
with:
name: 'coverage'
path: 'coverage/'
- name: 🏺 Publish test data
if: always()
uses: actions/[email protected]
with:
name: 'test data'
path: 'artifacts/test/'
- name: 🏺 Publish NuGet Packages
if: always()
uses: actions/[email protected]
with:
name: 'nuget'
path: 'artifacts/nuget/'