This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
- name : Build & Test Components
4
+ name : PR Workflow
5
5
6
6
on :
7
- # Trigger the workflow on push or pull request,
8
- # but only for the master branch
9
- push :
7
+ pull_request :
10
8
branches :
9
+ - master
11
10
- develop
12
- pull_request :
11
+ push :
13
12
branches :
14
13
- develop
15
14
@@ -20,15 +19,24 @@ jobs:
20
19
matrix :
21
20
node-version : [12.x]
22
21
steps :
23
- - uses : actions/checkout@v2
22
+ - name : Checkout
23
+ uses : actions/checkout@v2
24
+
24
25
- name : Use Node.js ${{ matrix.node-version }}
25
26
uses : actions/setup-node@v1
26
27
with :
27
28
node-version : ${{ matrix.node-version }}
28
- - run : yarn
29
- - run : yarn bootstrap
30
- - run : yarn lint
31
- - run : yarn build --if-present
32
- - run : yarn test
29
+
30
+ - name : Install dependencies
31
+ run : yarn install --frozen-lockfile && yarn bootstrap
32
+
33
+ - name : Lint types and code
34
+ run : yarn lint
35
+
36
+ - name : Build packages
37
+ run : yarn build
38
+
39
+ - name : Run tests
40
+ run : yarn test
33
41
env :
34
42
CI : true
You can’t perform that action at this time.
0 commit comments