File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Daily - Do npm install and run all unit tests
2
+
3
+ on :
4
+ schedule :
5
+ # run daily at midnight
6
+ - cron : ' 0 0 * * *'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ${{ matrix.os }}
11
+ strategy :
12
+ matrix :
13
+ node : [14]
14
+ os : [ubuntu-latest]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - run : npm i --package-lock --package-lock-only
23
+ - run : npm ci
24
+ - name : run unit tests
25
+ run : npm run test
26
+ - name : Slack Notification
27
+ if : ${{ failure() }}
28
+ uses : rtCamp/action-slack-notify@v2
29
+ env :
30
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
31
+ SLACK_TITLE : ' Node version'
32
+ SLACK_MESSAGE : ${{ matrix.node }}
33
+ SLACK_COLOR : ${{ job.status == 'success' && 'good' || job.status == 'cancelled' && '#808080' || 'danger' }}
34
+
You can’t perform that action at this time.
0 commit comments