File tree 2 files changed +42
-1
lines changed
2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name : Node.js CI
5
+
6
+ on :
7
+ push :
8
+ branches : [master]
9
+ pull_request :
10
+ branches : [master]
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ node-version : [14.x]
19
+
20
+ services :
21
+ redis :
22
+ image : redis
23
+ ports :
24
+ - 6379:6379
25
+ mysql :
26
+ image : mysql
27
+ env :
28
+ MYSQL_ROOT_PASSWORD : password
29
+ ports :
30
+ - 3306:3306
31
+
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+ - name : Use Node.js ${{ matrix.node-version }}
35
+ uses : actions/setup-node@v3
36
+ with :
37
+ node-version : ${{ matrix.node-version }}
38
+ - run : npm ci
39
+ - run : npm run build --if-present
40
+ - run : npm test
Original file line number Diff line number Diff line change 1
- # CodePush Management CLI
1
+ # CodePush Management CLI ![ Node.js CI] ( https://github.com/shm-open/code-push-cli/workflows/Node.js%20CI/badge.svg )
2
+
2
3
3
4
[[ Chinese version 中文版]] ( ./README.cn.md )
4
5
You can’t perform that action at this time.
0 commit comments