Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.3.0...v3.4.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
name: Dev
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- patch-release
|
|
- next
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- "ubuntu-latest"
|
|
- "macos-latest"
|
|
- "windows-latest"
|
|
node:
|
|
# https://github.com/nodejs/node/issues/47096
|
|
- "19.7.0"
|
|
- "18"
|
|
- "16"
|
|
include:
|
|
# only enable coverage on the fastest job
|
|
- os: "ubuntu-latest"
|
|
node: "18"
|
|
ENABLE_CODE_COVERAGE: true
|
|
FULL_TEST: true
|
|
CHECK_TEST_PARSERS: true
|
|
exclude:
|
|
- os: "macos-latest"
|
|
node: "19.7.0"
|
|
- os: "windows-latest"
|
|
node: "19.7.0"
|
|
env:
|
|
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
|
FULL_TEST: ${{ matrix.FULL_TEST }}
|
|
CHECK_TEST_PARSERS: ${{ matrix.CHECK_TEST_PARSERS }}
|
|
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3.4.0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: "yarn"
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install --immutable
|
|
|
|
- name: Run Tests
|
|
if: ${{ !matrix.ENABLE_CODE_COVERAGE }}
|
|
run: yarn test
|
|
|
|
- name: Run Tests (coverage)
|
|
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
|
run: yarn c8 yarn test
|
|
|
|
- name: Upload Coverage
|
|
uses: codecov/codecov-action@v3.1.1
|
|
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
|
with:
|
|
fail_ci_if_error: true
|
|
files: coverage/lcov.info
|