Skip to content

docs(README.md): add codecov badge #5

docs(README.md): add codecov badge

docs(README.md): add codecov badge #5

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*, current]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage
path: |
src/coverage/lcov.info
codecov:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download code coverage results
uses: actions/download-artifact@v2
with:
name: code-coverage
- name: Upload coverage reports to Codecov - ebexjs
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}