Skip to content

Commit bfa1889

Browse files
committed
update ci jobs
1 parent 3134015 commit bfa1889

File tree

2 files changed

+149
-127
lines changed

2 files changed

+149
-127
lines changed

.github/workflows/ci.yml

Lines changed: 148 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -12,82 +12,82 @@ concurrency:
1212

1313
jobs:
1414
# Install & caches "fresh" node_modules
15-
npm-install:
16-
name: Install npm deps
17-
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
node-version: [20.x]
21-
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
cache-dependency-path: |
30-
package-lock.json
31-
source/package-lock.json
32-
examples/package-lock.json
33-
www/package-lock.json
34-
35-
- name: Cache node_modules for root
36-
id: cache-node-modules-root
37-
uses: actions/cache@v3
38-
with:
39-
path: node_modules
40-
key: node-modules-root-${{ github.run_id }}
41-
42-
- name: Cache node_modules for source
43-
id: cache-node-modules-source
44-
uses: actions/cache@v3
45-
with:
46-
path: source/node_modules
47-
key: node-modules-source-${{ github.run_id }}
48-
49-
- name: Cache node_modules for examples
50-
id: cache-node-modules-examples
51-
uses: actions/cache@v3
52-
with:
53-
path: examples/node_modules
54-
key: node-modules-examples-${{ github.run_id }}
55-
56-
- name: Cache node_modules for www
57-
id: cache-node-modules-www
58-
uses: actions/cache@v3
59-
with:
60-
path: www/node_modules
61-
key: node-modules-www-${{ github.run_id }}
62-
63-
- name: Cache node_modules for www/dataserver
64-
id: cache-node-modules-www-dataserver
65-
uses: actions/cache@v3
66-
with:
67-
path: www/dataserver/node_modules
68-
key: node-modules-www-dataserver-${{ github.run_id }}
69-
70-
- name: Execute 'npm ci' in monorepo
71-
run: npm ci
72-
73-
- name: Execute 'npm i' in www/dataserver
74-
run: npm run www-dataserver:install
75-
76-
- name: Get installed Playwright version
77-
id: playwright-version
78-
run: echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
79-
working-directory: examples
80-
81-
- name: Cache browser binaries for Playwright
82-
id: playwright-cache
83-
uses: actions/cache@v3
84-
with:
85-
path: '~/.cache/ms-playwright'
86-
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
15+
# npm-install:
16+
# name: Install npm deps
17+
# runs-on: ubuntu-latest
18+
# strategy:
19+
# matrix:
20+
# node-version: [20.x]
21+
22+
# steps:
23+
# - uses: actions/checkout@v4
24+
# - name: Use Node.js ${{ matrix.node-version }}
25+
# uses: actions/setup-node@v3
26+
# with:
27+
# node-version: ${{ matrix.node-version }}
28+
# cache: 'npm'
29+
# cache-dependency-path: |
30+
# package-lock.json
31+
# source/package-lock.json
32+
# examples/package-lock.json
33+
# www/package-lock.json
34+
35+
# - name: Cache node_modules for root
36+
# id: cache-node-modules-root
37+
# uses: actions/cache@v3
38+
# with:
39+
# path: node_modules
40+
# key: node-modules-root-${{ github.run_id }}
41+
42+
# - name: Cache node_modules for source
43+
# id: cache-node-modules-source
44+
# uses: actions/cache@v3
45+
# with:
46+
# path: source/node_modules
47+
# key: node-modules-source-${{ github.run_id }}
48+
49+
# - name: Cache node_modules for examples
50+
# id: cache-node-modules-examples
51+
# uses: actions/cache@v3
52+
# with:
53+
# path: examples/node_modules
54+
# key: node-modules-examples-${{ github.run_id }}
55+
56+
# - name: Cache node_modules for www
57+
# id: cache-node-modules-www
58+
# uses: actions/cache@v3
59+
# with:
60+
# path: www/node_modules
61+
# key: node-modules-www-${{ github.run_id }}
62+
63+
# - name: Cache node_modules for www/dataserver
64+
# id: cache-node-modules-www-dataserver
65+
# uses: actions/cache@v3
66+
# with:
67+
# path: www/dataserver/node_modules
68+
# key: node-modules-www-dataserver-${{ github.run_id }}
69+
70+
# - name: Execute 'npm ci' in monorepo
71+
# run: npm ci
72+
73+
# - name: Execute 'npm i' in www/dataserver
74+
# run: npm run www-dataserver:install
75+
76+
# - name: Get installed Playwright version
77+
# id: playwright-version
78+
# run: echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
79+
# working-directory: examples
80+
81+
# - name: Cache browser binaries for Playwright
82+
# id: playwright-cache
83+
# uses: actions/cache@v3
84+
# with:
85+
# path: '~/.cache/ms-playwright'
86+
# key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
8787

8888
# Compiles all TS files in the monorepo
8989
ts-check:
90-
needs: npm-install
90+
# needs: npm-install
9191
name: Compile source code
9292
runs-on: ubuntu-latest
9393
strategy:
@@ -101,46 +101,49 @@ jobs:
101101
with:
102102
node-version: ${{ matrix.node-version }}
103103

104-
- name: Load cached node_modules for root
105-
id: cache-node-modules-root
106-
uses: actions/cache@v3
107-
with:
108-
path: node_modules
109-
key: node-modules-root-${{ github.run_id }}
110-
111-
- name: Load cached node_modules for source
112-
id: cache-node-modules-source
113-
uses: actions/cache@v3
114-
with:
115-
path: source/node_modules
116-
key: node-modules-source-${{ github.run_id }}
117-
118-
- name: Load cached node_modules for examples
119-
id: cache-node-modules-examples
120-
uses: actions/cache@v3
121-
with:
122-
path: examples/node_modules
123-
key: node-modules-examples-${{ github.run_id }}
124-
125-
- name: Load cached node_modules for www
126-
id: cache-node-modules-www
127-
uses: actions/cache@v3
128-
with:
129-
path: www/node_modules
130-
key: node-modules-www-${{ github.run_id }}
104+
- name: Execute 'npm ci' in monorepo
105+
run: npm ci
131106

132-
- name: Load cached node_modules for www/dataserver
133-
id: cache-node-modules-www-dataserver
134-
uses: actions/cache@v3
135-
with:
136-
path: www/dataserver/node_modules
137-
key: node-modules-www-dataserver-${{ github.run_id }}
107+
# - name: Load cached node_modules for root
108+
# id: cache-node-modules-root
109+
# uses: actions/cache@v3
110+
# with:
111+
# path: node_modules
112+
# key: node-modules-root-${{ github.run_id }}
113+
114+
# - name: Load cached node_modules for source
115+
# id: cache-node-modules-source
116+
# uses: actions/cache@v3
117+
# with:
118+
# path: source/node_modules
119+
# key: node-modules-source-${{ github.run_id }}
120+
121+
# - name: Load cached node_modules for examples
122+
# id: cache-node-modules-examples
123+
# uses: actions/cache@v3
124+
# with:
125+
# path: examples/node_modules
126+
# key: node-modules-examples-${{ github.run_id }}
127+
128+
# - name: Load cached node_modules for www
129+
# id: cache-node-modules-www
130+
# uses: actions/cache@v3
131+
# with:
132+
# path: www/node_modules
133+
# key: node-modules-www-${{ github.run_id }}
134+
135+
# - name: Load cached node_modules for www/dataserver
136+
# id: cache-node-modules-www-dataserver
137+
# uses: actions/cache@v3
138+
# with:
139+
# path: www/dataserver/node_modules
140+
# key: node-modules-www-dataserver-${{ github.run_id }}
138141

139142
- name: Compile source code in monorepo
140143
run: npm run ci:ts-check
141144

142145
run-tests:
143-
needs: npm-install
146+
# needs: npm-install
144147
name: Run tests
145148
runs-on: ubuntu-latest
146149
env:
@@ -156,39 +159,57 @@ jobs:
156159
with:
157160
node-version: ${{ matrix.node-version }}
158161

159-
- name: Load cached node_modules for root
160-
id: cache-node-modules-root
161-
uses: actions/cache@v3
162-
with:
163-
path: node_modules
164-
key: node-modules-root-${{ github.run_id }}
165-
166-
- name: Load cached node_modules for source
167-
id: cache-node-modules-source
168-
uses: actions/cache@v3
169-
with:
170-
path: source/node_modules
171-
key: node-modules-source-${{ github.run_id }}
162+
- name: Execute 'npm ci' in monorepo
163+
run: npm ci
172164

173-
- name: Load cached node_modules for examples
174-
id: cache-node-modules-examples
175-
uses: actions/cache@v3
176-
with:
177-
path: examples/node_modules
178-
key: node-modules-examples-${{ github.run_id }}
165+
- name: Execute 'npm i' in www/dataserver
166+
run: npm run www-dataserver:install
179167

180168
- name: Get installed Playwright version
181169
id: playwright-version
182170
run: echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
183171
working-directory: examples
184172

185-
- name: Load cached browser binaries for Playwright
173+
- name: Cache browser binaries for Playwright
186174
id: playwright-cache
187175
uses: actions/cache@v3
188176
with:
189177
path: '~/.cache/ms-playwright'
190178
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
191179

180+
# - name: Load cached node_modules for root
181+
# id: cache-node-modules-root
182+
# uses: actions/cache@v3
183+
# with:
184+
# path: node_modules
185+
# key: node-modules-root-${{ github.run_id }}
186+
187+
# - name: Load cached node_modules for source
188+
# id: cache-node-modules-source
189+
# uses: actions/cache@v3
190+
# with:
191+
# path: source/node_modules
192+
# key: node-modules-source-${{ github.run_id }}
193+
194+
# - name: Load cached node_modules for examples
195+
# id: cache-node-modules-examples
196+
# uses: actions/cache@v3
197+
# with:
198+
# path: examples/node_modules
199+
# key: node-modules-examples-${{ github.run_id }}
200+
201+
# - name: Get installed Playwright version
202+
# id: playwright-version
203+
# run: echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
204+
# working-directory: examples
205+
206+
# - name: Load cached browser binaries for Playwright
207+
# id: playwright-cache
208+
# uses: actions/cache@v3
209+
# with:
210+
# path: '~/.cache/ms-playwright'
211+
# key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
212+
192213
- name: Build test app
193214
run: npm run ci:test:build
194215

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- canary
78
# paths-ignore:
89
# - 'www/**'
910

0 commit comments

Comments
 (0)