-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (91 loc) · 2.41 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
# ------------------------------------------------------------------------------
# <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
jobs:
Build:
strategy:
fail-fast: false
matrix:
os: [macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
clean: 'false'
fetch-depth: '0'
- name: Fetch all history for all tags and branches
run: |
git fetch --prune
- name: 🔨 Use .NET Core 3.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: 🎁 dotnet tool restore
run: |
dotnet tool restore
- name: 🎁 Restore
run: |
dotnet nuke Restore --skip
- name: ⚙ Build
run: |
dotnet nuke Build --skip
- name: 🚦 Test
run: |
dotnet nuke Test Trigger_Code_Coverage_Reports Generate_Code_Coverage_Report_Cobertura Generate_Code_Coverage_Badges Generate_Code_Coverage_Summary Generate_Code_Coverage_Report --skip
- name: Docs
run: |
dotnet nuke Docs --skip
- name: 🐿 Publish Coverage
uses: codecov/codecov-action@v1
with:
name: 'actions-${{ matrix.os }}'
- name: 🏺 Publish logs
if: always()
uses: actions/upload-artifact@v2
with:
name: 'logs'
path: 'artifacts/logs/'
- name: 🏺 Publish coverage data
if: always()
uses: actions/upload-artifact@v2
with:
name: 'coverage'
path: 'coverage/'
- name: 🏺 Publish test data
if: always()
uses: actions/upload-artifact@v2
with:
name: 'test data'
path: 'artifacts/test/'
- name: 🏺 Publish NuGet Packages
if: always()
uses: actions/upload-artifact@v2
with:
name: 'nuget'
path: 'artifacts/nuget/'