Skip to content

setup codecov

setup codecov #15

Workflow file for this run

name: Codecov
on: [push]
on:

Check failure on line 3 in .github/workflows/coverage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/coverage.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
issue_comment:
types: [created, edited]
jobs:
strategy:
matrix:
node-version: [16]
coverage:
runs-on: ubuntu-latest
# if: github.event.issue.pull_request && contains(github.event.comment.body, './coverage')
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.2.0
with:
node-version: ${{ matrix.node-version }}
- name: Upgrade npm
run: npm install -g npm@7
- run: npm install
- run: npm run coverage
- uses: actions/checkout@master
- uses: codecov/codecov-action@v3
with:
verbose: true # optional (default = false)
directory: ./coverage