Skip to content

Commit fae9e8f

Browse files
committed
ci: try share the same dependency installation between jobs
1 parent de9c0e8 commit fae9e8f

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/bundlesize.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ jobs:
77
bundlesize:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v3
12-
1310
- name: Install dev dependencies
14-
run: yarn install
11+
run: yarn build
1512

1613
- name: Bundlesize
1714
run: yarn run bundlesize

.github/workflows/lint.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v3
12-
13-
- name: Install dev dependencies
14-
run: yarn install
15-
1610
- name: ESLint
1711
run: yarn run eslint
1812

.github/workflows/pull-request.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@ on:
77
pull_request:
88

99
jobs:
10+
preparing_env:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v3
15+
16+
- name: Install dev dependencies
17+
run: yarn install
18+
1019
lint:
20+
needs: preparing_env
1121
uses: ./.github/workflows/lint.yaml
1222

1323
bundlesize:
24+
needs: preparing_env
1425
uses: ./.github/workflows/bundlesize.yaml

0 commit comments

Comments
 (0)