-
Notifications
You must be signed in to change notification settings - Fork 107
75 lines (73 loc) · 2.53 KB
/
TASKLIST_CARBONISATION.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Check Tasklist Carbonization
on:
push:
branches:
- '*'
- '!main'
jobs:
Exec:
name: Run visual regression
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.47.1
options: --user 1001:1000
steps:
- name: Checkout form-js
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
path: form-js
- name: Checkout Tasklist
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
repository: camunda/zeebe
token: ${{ secrets.ADD_TO_HTO_PROJECT_PAT }}
path: zeebe
ref: 'main'
- name: Setup form-js cache
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ./form-js/package-lock.json
- name: Setup Tasklist cache
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: ./zeebe/tasklist/client/yarn.lock
- name: Install form-js deps
run: npm ci
working-directory: ./form-js
- name: Build form-js
run: npm run build
working-directory: ./form-js
- name: Create form-js-viewer link
run: yarn link
working-directory: ./form-js/packages/form-js-viewer
- name: Link form-js-viewer
run: yarn link "@bpmn-io/form-js-viewer"
working-directory: ./zeebe/tasklist/client
- name: Create form-js-carbon-styles link
run: yarn link
working-directory: ./form-js/packages/form-js-carbon-styles
- name: Link form-js-carbon-styles
run: yarn link "@bpmn-io/form-js-carbon-styles"
working-directory: ./zeebe/tasklist/client
- name: Install Tasklist deps
run: yarn
working-directory: ./zeebe/tasklist/client
- name: Build Tasklist
run: yarn build:visual-regression
working-directory: ./zeebe/tasklist/client
- name: Start server
working-directory: ./zeebe/tasklist/client
run: yarn start:visual-regression &
- name: Run Playwright tests
working-directory: ./zeebe/tasklist/client
run: yarn playwright form-js-integration
- uses: actions/upload-artifact@184d73b71b93c222403b2e7f1ffebe4508014249
if: always()
with:
name: playwright-report
path: ./zeebe/tasklist/client/playwright-report/
retention-days: 30