2020-04-26 20:33:39 +00:00
|
|
|
name: Test
|
|
|
|
|
2020-05-28 22:45:37 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
2020-04-26 20:33:39 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-08-25 20:45:58 +00:00
|
|
|
OS:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2020-08-30 11:17:15 +00:00
|
|
|
fail-fast: false
|
2020-08-25 20:45:58 +00:00
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
2020-04-26 20:33:39 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
2020-07-28 05:18:26 +00:00
|
|
|
- name: Read Node version from .nvmrc
|
|
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
|
|
id: nvm
|
|
|
|
- uses: actions/setup-node@v1
|
2020-04-26 20:33:39 +00:00
|
|
|
with:
|
2020-07-28 05:18:26 +00:00
|
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
2020-04-26 20:33:39 +00:00
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|
2021-02-02 23:19:22 +00:00
|
|
|
# Smoke tests disabled while new homepage layout is worked on for Core
|
|
|
|
# - name: Build for smoke tests
|
|
|
|
# run: npm run app-build:smoke
|
|
|
|
# - name: Run smoke tests
|
|
|
|
# timeout-minutes: 10 # sometimes jest fails to exit - https://github.com/facebook/jest/issues/6423#issuecomment-620407580
|
|
|
|
# run: npm run test:smoke:build
|
2020-12-08 00:03:06 +00:00
|
|
|
- name: Run CLI smoke tests
|
|
|
|
run: npm run test:smoke:cli
|