-
-
Notifications
You must be signed in to change notification settings - Fork 100
75 lines (60 loc) · 1.83 KB
/
js-ci.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
name: JS Testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Setup Chromium
uses: browser-actions/setup-chrome@latest
- name: Install using Lerna
run: |
npm i -g patch-package
yarn install
yarn run lerna bootstrap
- name: Build Starboard Rich Editor
working-directory: packages/starboard-rich-editor
run: |
yarn install
yarn run build
- name: Build Starboard Python
working-directory: packages/starboard-python
run: |
yarn install
yarn run build
- name: Build
working-directory: packages/starboard-notebook
run: |
yarn install
yarn run build:nominify
tar -czvf starboard-notebook.tar.gz dist/*
- name: Upload built starboard-notebook.tar.gz as Github artifact
uses: actions/upload-artifact@v4
with:
name: starboard-notebook.tar.gz
path: packages/starboard-notebook/starboard-notebook.tar.gz
retention-days: 10
- name: Remove artifact from working directory
working-directory: packages/starboard-notebook
run: |
rm starboard-notebook.tar.gz
- name: Test
working-directory: packages/starboard-notebook
run: yarn test
- name: Lint
working-directory: packages/starboard-notebook
run: npm run lint
- name: Postinstall Starlit
working-directory: packages/starboard-notebook/node_modules/starlit
run: npm run postinstall
- name: Starlit NBTest
working-directory: packages/starboard-notebook
run: npm run nbtest -- --timeout 150