Skip to content

Merge pull request #204 from bcgov/build-fix #682

Merge pull request #204 from bcgov/build-fix

Merge pull request #204 from bcgov/build-fix #682

name: Build and Test Library
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [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, and build
run: |
npm ci
npm run build
env:
CI: true
test:
runs-on: ubuntu-latest
needs: [build]
strategy:
matrix:
node-version: [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, and build
run: |
npm ci
npm run test
env:
CI: true