Skip to content

Commit

Permalink
Update nodejs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatakeshi authored Nov 10, 2019
1 parent e8bceac commit f56c920
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Node CI
on: [push]

jobs:
build:
build-ubuntu:
runs-on: ubuntu-latest

strategy:
Expand All @@ -25,3 +25,48 @@ jobs:
npm test
env:
CI: true
build-windows:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm i -g npm
npm install
npm ci
npm run build --if-present
npm test
env:
CI: true
build-mac:
runs-on: macOS-latest

strategy:
matrix:
node-version: [10.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm i -g npm
npm install
npm ci
npm run build --if-present
npm test
env:
CI: true

0 comments on commit f56c920

Please sign in to comment.