Skip to content

Commit

Permalink
Merge pull request #23 from leoafarias/build_workflow
Browse files Browse the repository at this point in the history
Update and rename nodejs.yml to build.yml
  • Loading branch information
leoafarias committed Oct 16, 2019
2 parents eed275d + 6c99e02 commit 45bb970
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.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 install
npm ci
npm run build --if-present
npm test
env:
CI: true

0 comments on commit 45bb970

Please sign in to comment.