Skip to content

Chore: increase minimum Node.js version to v16.3 #1829

Chore: increase minimum Node.js version to v16.3

Chore: increase minimum Node.js version to v16.3 #1829

Workflow file for this run

# Requires repo secret: CODECOV_TOKEN ("repository upload token")
name: Codecov
on:
pull_request:
types:
# - edited # PR's base branch was changed
- opened
- reopened
- synchronize # PR's branch was edited (i.e. new commits)
push:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
codecov-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: formsort/action-check-codecov-config@v1
# !!! The codecov/project check should be required by GitHub !!!
# See ../../codecov.yml for the configuration that drives the check
codecov:
needs:
- codecov-lint
runs-on: ubuntu-latest
steps:
# Setup and install
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
# Run test coverage
- run: npm run test:coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true