Skip to content

Commit

Permalink
add daily build test against Node.js nightly build (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Apr 16, 2020
1 parent cb5c3be commit b024ee9
Showing 1 changed file with 33 additions and 16 deletions.
49 changes: 33 additions & 16 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
test:
runs-on: ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g cmake-js@5.3.2
- run: npm install
- name: Environment Information
run: npx envinfo
- name: Run Test
run: npm test
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g cmake-js@5.3.2
- run: npm install
- name: Environment Information
run: npx envinfo
- name: Run Test
run: npm test

nightly-daily-test:
runs-on: ubuntu-latest
container: node
steps:
- uses: actions/checkout@v2
- run: npm i -g n && n nightly
- run: node -p process.versions
- name: Environment Information
run: npx envinfo
- run: npm install -g cmake-js@5.3.2
- run: npm install
- name: Environment Information
run: npx envinfo
- name: Run Test
continue-on-error: true
run: npm test

0 comments on commit b024ee9

Please sign in to comment.