forked from cake-contrib/Cake.Issues.Recipe
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (58 loc) · 2.07 KB
/
build.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
name: Build and tests
on: [push, pull_request]
jobs:
# Build
Build:
name: Build
runs-on: windows-2022
steps:
- name: Get the sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Install .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4
with:
# .NET 5 required for GitVersion
dotnet-version: |
5.x
8.x
9.x
- name: Build
run: .\build.ps1
shell: powershell
- name: Publish NuGet package as build artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet/
# Integration Tests Script Runner Windows 2019 (.NET 8)
Test_Windows_DotNetTool:
name: Integration Tests Script Runner Windows (.NET tool)
needs: Build
runs-on: windows-2019
steps:
- name: Get the sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install required tools
run: npm install -g markdownlint-cli
shell: powershell
- name: Download build artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4
with:
dotnet-version: |
8.x
- name: Run integration tests
run: ./build.ps1 --verbosity=diagnostic
working-directory: ./tests/script-runner/net8.0/
shell: powershell
- name: Publish generated reports as build artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: Integration Tests Script Runner Windows (.NET tool)
path: ./tests/script-runner/net8.0/BuildArtifacts/output/