Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.15 to v1.1.0. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v1.0.15...7de43a7373de21874ae196a78f8eb633fcf7f0c4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
85 lines
2.2 KiB
YAML
85 lines
2.2 KiB
YAML
name: Dev
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- patch-release
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- "ubuntu-latest"
|
|
- "macos-latest"
|
|
- "windows-latest"
|
|
node:
|
|
- "14"
|
|
- "12"
|
|
- "10"
|
|
include:
|
|
# only enable coverage on the fastest job
|
|
- os: "ubuntu-latest"
|
|
node: "14"
|
|
ENABLE_CODE_COVERAGE: true
|
|
FULL_TEST: true
|
|
CHECK_TEST_PARSERS: true
|
|
- os: "ubuntu-latest"
|
|
node: "15"
|
|
exclude:
|
|
- os: "macos-latest"
|
|
node: "12"
|
|
- os: "windows-latest"
|
|
node: "12"
|
|
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@v2.3.4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2.1.4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Run Tests (macOS)
|
|
if: matrix.os == 'macos-latest'
|
|
run: yarn test --maxWorkers=4
|
|
|
|
- name: Run Tests (Linux and Windows)
|
|
if: matrix.os != 'macos-latest'
|
|
run: yarn test --maxWorkers=2
|
|
|
|
- name: Upload Coverage
|
|
uses: codecov/codecov-action@v1.1.0
|
|
if: matrix.ENABLE_CODE_COVERAGE
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: ./coverage/lcov.info
|
|
fail_ci_if_error: true
|
|
|
|
# #8073 test
|
|
- name: Run Tests (PRETTIER_FALLBACK_RESOLVE)
|
|
run: yarn test "tests_integration/__tests__/(config|plugin)"
|
|
env:
|
|
PRETTIER_FALLBACK_RESOLVE: true
|
|
|
|
- name: Upload Coverage (PRETTIER_FALLBACK_RESOLVE)
|
|
uses: codecov/codecov-action@v1.1.0
|
|
if: matrix.ENABLE_CODE_COVERAGE
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: ./coverage/lcov.info
|
|
fail_ci_if_error: true
|