Skip to content

Bump codecov action (and get inquirer coverage) #336

Bump codecov action (and get inquirer coverage)

Bump codecov action (and get inquirer coverage) #336

Workflow file for this run

name: Node
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 16
- 14
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: yarn install
run: |
node --version
yarn install --immutable --immutable-cache --check-cache
env:
CI: true
FORCE_COLOR: 1
# TS must run before we check dependencies since otherwise our exports map points to nothing.
- name: Typescript
run: yarn lerna run tsc
- name: Eslint
run: yarn eslint . --ext .js --ext .ts
- name: Test inquirer package (current version)
run: yarn lerna exec npm test --scope inquirer
- name: Test monorepo packages (new version)
run: yarn jest
- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage/clover.xml,./coverage/nyc-report.lcov