Files
test-repo/.github/workflows/dev-test.yml
T
fisker Cheung 412694e1c5 Tweak test and CI configs (#7866)
* Set `jest` verbose to false by default

* Correct `doc-debug.js` path

* Remove outdated ignore patterns

* Exclude Node.js 13 on macos
2020-03-26 17:02:43 +02:00

57 lines
1.2 KiB
YAML

name: Dev
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
node:
- "13"
- "12"
- "10"
include:
# only enable coverage on the fastest job
- os: "ubuntu-latest"
node: "12"
ENABLE_CODE_COVERAGE: true
exclude:
- os: "macos-latest"
node: "13"
env:
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn test --maxWorkers=4
- name: Upload Coverage
uses: codecov/codecov-action@v1
if: matrix.ENABLE_CODE_COVERAGE
with:
file: ./coverage/lcov.info
fail_ci_if_error: true