File tree 2 files changed +23
-15
lines changed
2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
1
+ name : build
2
2
3
- name : Build & Test
4
-
5
- # Controls when the action will run. Triggers the workflow on push or pull request
6
- # events but only for the master branch
7
3
on :
8
4
push :
9
5
branches : [ master ]
10
6
pull_request :
11
7
branches : [ master ]
12
8
13
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
9
jobs :
15
- # This workflow contains a single job called "build"
16
10
build :
17
- # The type of runner that the job will run on
18
11
runs-on : ubuntu-latest
19
-
20
- # Steps represent a sequence of tasks that will be executed as part of the job
21
12
steps :
22
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23
13
- uses : actions/checkout@v2
24
-
25
- - name : Use Node.js 10.x
14
+ - name : Use Node.js 12.x
26
15
uses : actions/setup-node@v1
27
16
with :
28
- node-version : 10 .x
17
+ node-version : 12 .x
29
18
- run : npm install
30
- - run : npm run build
19
+ - run : npm run compile
Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Use Node.js 12.x
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 12.x
18
+ - run : npm install
19
+ - run : npm run test
You can’t perform that action at this time.
0 commit comments