-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (48 loc) · 1.07 KB
/
pr_validation.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
name: pr_validation
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
merge_group:
jobs:
test:
name: Test-${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest,]
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
- name: "Install .NET SDK"
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: "Update release notes and version"
shell: pwsh
run: |
./build.ps1
- name: "dotnet pack"
run: dotnet pack -c Release -o bin/nuget
- name: "Install templates"
run: dotnet new install bin/nuget/*.nupkg
- name: "Test dev templates"
shell: pwsh
run: |
./scripts/test-templates.ps1
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: package
path: |
bin/**/*.nupkg