* Followup work on setup github actions * Coverage report & split `prod_lint` * Add env * Remove coverage report on azure pipelines * Remove build step on lint * remove coverage report on prod_test * Use `ci-info` instead of `is-ci` * Always enable `ENABLE_TEST_RESULTS` and `AST_COMPARE` on CI * Standalone test and remove some env * coverage report * reduce matrix * standalone test * `ci-info` * Remove token * Disable `coverage` on azure pipelines * use master version of codecov-action * Link to master status * fix prod lint * Use boolean env * Remove locv report * Try lcov report * pin `codecov-action` version, enable `verbose` * azure coverage * Name * Trigger CI * Use `basename` * Trigger CI * Try `runInBand` * try `maxWorkers` Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Dev
|
|
|
|
on: [push, 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
|
|
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
|