File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check PR - Build Project
2
+
3
+ on :
4
+ pull_request
5
+
6
+ jobs :
7
+ build :
8
+
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@v2
13
+ with :
14
+ persist-credentials : false
15
+ fetch-depth : 0
16
+
17
+ - name : Use node 12
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : 12.x
21
+
22
+ - name : Get yarn cache
23
+ id : yarn-cache
24
+ run : echo "::set-output name=dir::$(yarn cache dir)"
25
+
26
+ - name : Cache Node.js modules
27
+ uses : actions/cache@v1
28
+ with :
29
+ path : ${{ steps.yarn-cache.outputs.dir }}
30
+ key : ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
31
+ restore-keys : |
32
+ ${{ runner.OS }}-yarn-
33
+
34
+ - name : Install dependencies
35
+ run : yarn
36
+
37
+ - name : Build project
38
+ run : yarn build
You can’t perform that action at this time.
0 commit comments