-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (79 loc) · 2.47 KB
/
Copy pathvalidate.yml
File metadata and controls
99 lines (79 loc) · 2.47 KB
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
name: Validate
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
client:
name: Client
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Audit changed client code
if: github.event_name == 'pull_request'
run: pnpm --filter thebuilder-web-analytics run audit --base '${{ github.event.pull_request.base.sha }}' --format github-annotations
- name: Test client
run: pnpm --filter thebuilder-web-analytics test
- name: Build client
run: pnpm --filter thebuilder-web-analytics build
dotnet:
name: .NET (Umbraco ${{ matrix.umbraco-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
umbraco-version:
- 17.1.0
- 17.*
- 18.*
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Test package
run: dotnet test tests/TheBuilder.WebAnalytics.Tests/TheBuilder.WebAnalytics.Tests.csproj '-p:UmbracoVersion=${{ matrix.umbraco-version }}'
- name: Build example
run: dotnet build samples/TheBuilder.WebAnalytics.Example/TheBuilder.WebAnalytics.Example.csproj '-p:UmbracoVersion=${{ matrix.umbraco-version }}'
package:
name: Package
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Enable Corepack
run: corepack enable
- name: Install backoffice dependencies
run: pnpm install --frozen-lockfile
- name: Pack NuGet package
run: >-
dotnet pack src/TheBuilder.WebAnalytics/TheBuilder.WebAnalytics.csproj
--configuration Release
--output artifacts
-p:ContinuousIntegrationBuild=true
- name: Validate NuGet archive
run: unzip -t artifacts/*.nupkg