Skip to content

Commit b024ee9

Browse files
authored
add daily build test against Node.js nightly build (#131)
1 parent cb5c3be commit b024ee9

File tree

1 file changed

+33
-16
lines changed

1 file changed

+33
-16
lines changed

Diff for: .github/workflows/nodejs.yml

+33-16
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
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-
41
name: Node.js CI
52

6-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
78

89
jobs:
910
test:
10-
runs-on: ${{ matrix.operating-system }}
11+
runs-on: ${{ matrix.operating-system }}
1112

1213
strategy:
1314
matrix:
1415
node-version: [10.x, 12.x, 13.x]
1516
operating-system: [ubuntu-latest, windows-latest, macos-latest]
1617

1718
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
2930

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

Comments
 (0)