Here’s my CircleCI config
version: 2.1
orbs:
codecov: codecov/codecov@1.0.4
jobs:
build:
docker:
- image: circleci/node:10.15.0
- image: circleci/postgres:9.6.5-alpine-ram
environment:
DATABASE_URL: postgresql://root@localhost/circle_test
steps:
- checkout
- restore_cache:
keys:
- npm-deps-{{ checksum "package-lock.json" }}
- npm-deps-
- run:
name: Update NPM
command: sudo npm i -g npm@latest
- run:
name: Install Dependencies
command: npm i
- save_cache:
key: npm-deps-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: Lint
command: npm run lint
when: always
- run:
name: Test
command: npm run test
when: always
- codecov/upload:
file: ./coverage/lcov.info
workflows:
version: 2
testing:
jobs:
- build
When it’s run, however, the step for uploading results isn’t shown in the build, and Codecov doesn’t recieve a report. My CODECOV_TOKEN
environmental variable is set in my Circle options…
I don’t have a Codecov config, but the Codecov docs say it’s optional.