File tree Expand file tree Collapse file tree 2 files changed +39
-77
lines changed Expand file tree Collapse file tree 2 files changed +39
-77
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Test monorepo
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - main
6
+
7
+ jobs :
8
+ test-monorepo :
9
+ name : Test monorepo
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout repo
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Install node
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 16.13.x
19
+ cache : yarn
20
+
21
+ - name : Restore dependencies
22
+ id : yarn-cache
23
+ uses : actions/cache@v3
24
+ with :
25
+ path : ' **/node_modules'
26
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27
+
28
+ - name : Install dependencies
29
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
30
+ run : yarn install --frozen-lockfile
31
+
32
+ - name : Lint files
33
+ run : yarn lint
34
+
35
+ - name : Build packages in the monorepo
36
+ run : yarn lerna run prepare
37
+
38
+ - name : Typecheck files
39
+ run : yarn typescript
You can’t perform that action at this time.
0 commit comments