Skip to content

Commit a8705be

Browse files
committed
chore: restore test setup from backoffice repo
1 parent a315aa9 commit a8705be

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/test-backoffice.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ on:
66
- contrib
77
- release/*
88
- v*/dev
9+
paths:
10+
- src/Umbraco.Web.UI.Client/**
911
pull_request:
1012
branches:
1113
- contrib
1214
- release/*
1315
- v*/dev
16+
paths:
17+
- src/Umbraco.Web.UI.Client/**
1418

1519
# Allows GitHub to use this workflow to validate the merge queue
1620
merge_group:
@@ -22,7 +26,7 @@ env:
2226
NODE_OPTIONS: --max_old_space_size=16384
2327

2428
jobs:
25-
test:
29+
build:
2630
runs-on: ubuntu-latest
2731
defaults:
2832
run:
@@ -37,5 +41,23 @@ jobs:
3741
cache-dependency-path: ./src/Umbraco.Web.UI.Client/package-lock.json
3842
- run: npm ci --no-audit --no-fund --prefer-offline
3943
- run: npm run lint:errors
44+
- run: npm run build:for:cms
45+
- run: npm run check:paths
46+
- run: npm run generate:jsonschema:dist
47+
48+
test:
49+
runs-on: ubuntu-latest
50+
defaults:
51+
run:
52+
working-directory: src/Umbraco.Web.UI.Client
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: Use Node.js
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version-file: src/Umbraco.Web.UI.Client/.nvmrc
59+
cache: npm
60+
cache-dependency-path: ./src/Umbraco.Web.UI.Client/package-lock.json
61+
- run: npm ci --no-audit --no-fund --prefer-offline
4062
- run: npx playwright install --with-deps
4163
- run: npm test

0 commit comments

Comments
 (0)