Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Commit

Permalink
Add NodeJS CI GitHub workflow
Browse files Browse the repository at this point in the history
Refs #1.

Forked from https://github.com/actions/starter-workflows/blob/6adb515f324bc8ef4c0091053438298bbc34a85a/ci/node.js.yml.

Modified this slightly to use Lerna for the dependency management piece. I wasn't able to find any explicit documentation for `npm ci`-like behavior for Lerna, but this appears to be implemented. Looking through lerna/lerna#1360, it appears to support `--ci`.
  • Loading branch information
dgp1130 committed May 2, 2020
1 parent 23474fb commit 4fe5981
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 12.x ]

steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm run -- lerna bootstrap --ci
- run: npm run -- lerna run build
- run: npm run -- lerna run test

0 comments on commit 4fe5981

Please sign in to comment.