Skip to content

Commit a50390d

Browse files
committed
ci: Build and bundle size
1 parent 1f66091 commit a50390d

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
job_1:
10+
job_build:
1111
name: Build
1212
runs-on: ubuntu-latest
1313
steps:
@@ -32,9 +32,33 @@ jobs:
3232
${{ github.workspace }}/packages/**/dist
3333
${{ github.workspace }}/packages/**/esm
3434
35-
job_2:
35+
job_size_check:
36+
name: Size Check
37+
needs: job_build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- uses: actions/setup-node@v1
42+
- uses: actions/cache@v2
43+
with:
44+
path: |
45+
node_modules
46+
*/*/node_modules
47+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
48+
- run: yarn install
49+
- uses: actions/download-artifact@v2
50+
with:
51+
name: build
52+
path: ${{ github.workspace }}/packages
53+
- uses: andresz1/[email protected]
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
build_script: echo "doing nothing"
57+
skip_step: install
58+
59+
job_lint:
3660
name: Lint
37-
needs: job_1
61+
needs: job_build
3862
runs-on: ubuntu-latest
3963
steps:
4064
- uses: actions/checkout@v2
@@ -53,9 +77,9 @@ jobs:
5377
- name: Run Linter
5478
run: yarn lint
5579

56-
job_3:
80+
job_unit_test:
5781
name: Test
58-
needs: job_1
82+
needs: job_build
5983
runs-on: ubuntu-latest
6084
steps:
6185
- uses: actions/checkout@v2

.github/workflows/size-limit.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)