|
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 | 1 | name: Node.js CI
|
5 | 2 |
|
6 |
| -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + schedule: |
| 7 | + - cron: "0 0 * * *" |
7 | 8 |
|
8 | 9 | jobs:
|
9 | 10 | test:
|
10 |
| - runs-on: ${{ matrix.operating-system }} |
| 11 | + runs-on: ${{ matrix.operating-system }} |
11 | 12 |
|
12 | 13 | strategy:
|
13 | 14 | matrix:
|
14 | 15 | node-version: [10.x, 12.x, 13.x]
|
15 | 16 | operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
16 | 17 |
|
17 | 18 | steps:
|
18 |
| - - uses: actions/checkout@v2 |
19 |
| - - name: Use Node.js ${{ matrix.node-version }} |
20 |
| - uses: actions/setup-node@v1 |
21 |
| - with: |
22 |
| - node-version: ${{ matrix.node-version }} |
23 |
| - - run: npm install -g [email protected] |
24 |
| - - run: npm install |
25 |
| - - name: Environment Information |
26 |
| - run: npx envinfo |
27 |
| - - name: Run Test |
28 |
| - run: npm test |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - name: Use Node.js ${{ matrix.node-version }} |
| 21 | + uses: actions/setup-node@v1 |
| 22 | + with: |
| 23 | + node-version: ${{ matrix.node-version }} |
| 24 | + - run: npm install -g [email protected] |
| 25 | + - run: npm install |
| 26 | + - name: Environment Information |
| 27 | + run: npx envinfo |
| 28 | + - name: Run Test |
| 29 | + run: npm test |
29 | 30 |
|
| 31 | + nightly-daily-test: |
| 32 | + runs-on: ubuntu-latest |
| 33 | + container: node |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v2 |
| 36 | + - run: npm i -g n && n nightly |
| 37 | + - run: node -p process.versions |
| 38 | + - name: Environment Information |
| 39 | + run: npx envinfo |
| 40 | + - run: npm install -g [email protected] |
| 41 | + - run: npm install |
| 42 | + - name: Environment Information |
| 43 | + run: npx envinfo |
| 44 | + - name: Run Test |
| 45 | + continue-on-error: true |
| 46 | + run: npm test |
0 commit comments