Add new Build & Test workflow

This commit is contained in:
John Hildenbiddle
2020-07-22 13:53:37 -04:00
parent e05aa3e0c4
commit a26aae958e
+34
View File
@@ -0,0 +1,34 @@
name: Build & Test
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: bootstrap
run: npm run bootstrap
- name: unit tests (mocha+chai+jsdom)
run: npm run test
- name: unit tests (jest+playwright)
run: npm run test:jest-unit -- -ci
- uses: microsoft/playwright-github-action@v1.3.0
- name: e2e tests (jest+playwright)
run: npm run test:jest-e2e -- -ci