-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (70 loc) · 2.07 KB
/
Copy pathunit.yml
File metadata and controls
85 lines (70 loc) · 2.07 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
name: Unit Tests
on: [push, pull_request]
env:
node-version: 24.x
jobs:
unitTests:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name:
# - '@plone/blocks'
- '@plone/cmsui'
- '@plone/components'
- '@plone/helpers'
- '@plone/layout'
- '@plone/react-router'
- '@plone/registry'
node-version: [24.x]
steps:
- uses: actions/checkout@v6
- name: Set up Node.js environment
uses: ./.github/actions/node_env_setup
with:
node-version: ${{ matrix.node-version }}
- name: Run unit tests ${{ matrix.name }}
run: pnpm --filter seven exec init-loaders && pnpm --filter ${{ matrix.name }} test
client:
name: '@plone/client'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v6
- name: Set up Node.js environment
uses: ./.github/actions/acceptance_tests_node_env_setup
with:
node-version: ${{ matrix.node-version }}
- uses: JarvusInnovations/background-action@v1
name: Start Servers
with:
run: |
make ci-acceptance-backend-start &
wait-on: |
http-get://localhost:55001/plone
tail: true
log-output-resume: stderr
wait-for: 10m
log-output: stderr,stdout
log-output-if: failure
- run: pnpm --filter @plone/client test
seven:
name: 'Seven'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v6
- name: Set up Node.js environment
uses: ./.github/actions/node_env_setup
with:
node-version: ${{ matrix.node-version }}
- run: make build-deps
- run: pnpm --filter seven test