Skip to content

Commit 3690715

Browse files
committed
ci: split size limit from cross-platform/node compilation
1 parent 5bfe451 commit 3690715

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Size Limit
1+
name: Build
22
on: [push, pull_request]
33
jobs:
44
build:
@@ -26,5 +26,3 @@ jobs:
2626
- run: yarn bootstrap
2727
- name: Build package
2828
run: yarn build
29-
- name: Check built package sizes
30-
run: yarn size

.github/workflows/size-limit.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Size Limit
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
node_version: [14]
10+
os: [ubuntu-latest]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use node ${{ matrix.node_version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node_version }}
17+
- name: Restore lerna cache
18+
uses: actions/cache@v2
19+
with:
20+
path: |
21+
node_modules
22+
*/*/node_modules
23+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
24+
- name: Install yarn dependencies
25+
run: yarn install
26+
- run: yarn bootstrap
27+
- name: Build package
28+
run: yarn build
29+
- name: Check built package sizes
30+
run: yarn size

0 commit comments

Comments
 (0)