Skip to content

Commit 68660e5

Browse files
committed
Update node ci setup.
1 parent 2de6e84 commit 68660e5

File tree

5 files changed

+24
-79
lines changed

5 files changed

+24
-79
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v1
1515
- name: Install node
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v3
1717
with:
18-
node-version: 12.x
18+
node-version: '14'
19+
cache: 'yarn'
1920
- name: Install Python
2021
uses: actions/setup-python@v1
2122
with:
@@ -30,17 +31,6 @@ jobs:
3031
restore-keys: |
3132
${{ runner.os }}-pip-${{ matrix.python }}
3233
33-
- name: Get yarn cache directory path
34-
id: yarn-cache-dir-path
35-
run: echo "::set-output name=dir::$(yarn cache dir)"
36-
- name: Cache yarn
37-
uses: actions/cache@v1
38-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
39-
with:
40-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
41-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42-
restore-keys: |
43-
${{ runner.os }}-yarn-
4434
- name: Install dependencies
4535
run: |
4636
python -m pip install jupyterlab~=3.0 jupyter_packaging~=0.10

.github/workflows/devinstall.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v1
1515
- name: Install node
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v3
1717
with:
18-
node-version: 12.x
18+
node-version: '14'
19+
cache: 'yarn'
1920
- name: Install Python
2021
uses: actions/setup-python@v1
2122
with:
@@ -30,17 +31,6 @@ jobs:
3031
restore-keys: |
3132
${{ runner.os }}-pip-${{ matrix.python }}
3233
33-
- name: Get yarn cache directory path
34-
id: yarn-cache-dir-path
35-
run: echo "::set-output name=dir::$(yarn cache dir)"
36-
- name: Cache yarn
37-
uses: actions/cache@v1
38-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
39-
with:
40-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
41-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42-
restore-keys: |
43-
${{ runner.os }}-yarn-
4434
- name: Install dependencies
4535
run: |
4636
python -m pip install notebook jupyterlab~=3.0 jupyter_packaging~=0.10

.github/workflows/lint.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,11 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Use Node.js 12.x
13-
uses: actions/setup-node@v1
12+
- name: Install node
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 12.x
16-
- name: Get yarn cache
17-
id: yarn-cache
18-
run: echo "::set-output name=dir::$(yarn cache dir)"
19-
- uses: actions/cache@v1
20-
with:
21-
path: ${{ steps.yarn-cache.outputs.dir }}
22-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23-
restore-keys: |
24-
${{ runner.os }}-yarn-
15+
node-version: '14'
16+
cache: 'yarn'
2517
- name: yarn install, integrity, lint
2618
run: |
2719
yarn install --frozen-lockfile

.github/workflows/packaging.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v2
2222
- name: Install node
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v3
2424
with:
25-
node-version: '16.x'
25+
node-version: '14'
26+
cache: 'yarn'
2627
- name: Install Python
2728
uses: actions/setup-python@v2
2829
with:
@@ -36,17 +37,6 @@ jobs:
3637
restore-keys: |
3738
${{ runner.os }}-pip-
3839
39-
- name: Get yarn cache directory path
40-
id: yarn-cache-dir-path
41-
run: echo "::set-output name=dir::$(yarn cache dir)"
42-
- uses: actions/cache@v2
43-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
44-
with:
45-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
46-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
47-
restore-keys: |
48-
${{ runner.os }}-yarn-
49-
5040
- name: Install dependencies
5141
run: |
5242
python -m pip install --upgrade pip wheel build jupyterlab~=3.0

.github/workflows/tests.yml

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,11 @@ jobs:
4949
sudo apt-get install -y firefox
5050
python -m pip install --upgrade pip
5151
python -m pip install jupyterlab~=3.0
52-
53-
- name: Use Node.js 12.x
54-
uses: actions/setup-node@v1
55-
with:
56-
node-version: 12.x
57-
- name: Get yarn cache
58-
id: yarn-cache
59-
run: echo "::set-output name=dir::$(yarn cache dir)"
60-
- uses: actions/cache@v1
52+
- name: Install node
53+
uses: actions/setup-node@v3
6154
with:
62-
path: ${{ steps.yarn-cache.outputs.dir }}
63-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
64-
restore-keys: |
65-
${{ runner.os }}-yarn-
66-
55+
node-version: '14'
56+
cache: 'yarn'
6757
- name: yarn install, build, test
6858
run: |
6959
yarn install --frozen-lockfile
@@ -166,21 +156,14 @@ jobs:
166156
python -m pip install --upgrade pip
167157
python -m pip install -U jupyterlab~=3.2 jupyter-packaging~=0.10
168158
169-
- name: Set up Node
170-
uses: actions/setup-node@v2
159+
- name: Install node
160+
uses: actions/setup-node@v3
171161
with:
172-
node-version: '16.x'
173-
174-
- name: Get yarn cache
175-
id: yarn-cache
176-
run: echo "::set-output name=dir::$(yarn cache dir)"
177-
178-
- uses: actions/cache@v1
179-
with:
180-
path: ${{ steps.yarn-cache.outputs.dir }}
181-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
182-
restore-keys: |
183-
${{ runner.os }}-yarn-
162+
node-version: '14'
163+
cache: 'yarn'
164+
cache-dependency-path: |
165+
yarn.lock
166+
ui-tests/yarn.lock
184167
185168
- name: Build and Install ipywidgets
186169
run: |

0 commit comments

Comments
 (0)