Skip to content

Commit 2db4615

Browse files
build: checkout and install deps in all jobs
1 parent f3e9d1f commit 2db4615

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

.github/workflows/github-actions.yml

+36-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
steps:
1919
- name: Check out code
2020
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 2
2321

2422
- name: Setup Node.js environment
2523
uses: actions/setup-node@v4
@@ -34,13 +32,37 @@ jobs:
3432
needs: [initialize]
3533
runs-on: ubuntu-latest
3634
steps:
35+
- name: Check out code
36+
uses: actions/checkout@v4
37+
38+
- name: Setup Node.js environment
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 18
42+
cache: "yarn"
43+
44+
- name: Install dependencies
45+
run: yarn --frozen-lockfile
46+
3747
- name: Lint
3848
run: yarn lint
3949

4050
typecheck:
4151
needs: [initialize]
4252
runs-on: ubuntu-latest
4353
steps:
54+
- name: Check out code
55+
uses: actions/checkout@v4
56+
57+
- name: Setup Node.js environment
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: 18
61+
cache: "yarn"
62+
63+
- name: Install dependencies
64+
run: yarn --frozen-lockfile
65+
4466
- name: Typecheck
4567
run: yarn build:ci
4668

@@ -49,5 +71,17 @@ jobs:
4971
runs-on: ubuntu-latest
5072
timeout-minutes: 10
5173
steps:
74+
- name: Check out code
75+
uses: actions/checkout@v4
76+
77+
- name: Setup Node.js environment
78+
uses: actions/setup-node@v4
79+
with:
80+
node-version: 18
81+
cache: "yarn"
82+
83+
- name: Install dependencies
84+
run: yarn --frozen-lockfile
85+
5286
- name: Unit Tests
5387
run: yarn test:ci

0 commit comments

Comments
 (0)