Skip to content

Commit

Permalink
created GitHub workflows config file .github\workflows\nodejs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
htbkoo committed Feb 24, 2020
1 parent 6b1f827 commit 5be2b65
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node CI

on:
push:
# Sequence of patterns matched against refs/heads
branches:
- master # Push events on master branch
pull_request:
types: [opened, synchronize]

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 ci
npm run build --if-present
npm test
env:
CI: true

0 comments on commit 5be2b65

Please sign in to comment.