Skip to content

Update coverage.yml #22

Update coverage.yml

Update coverage.yml #22

Workflow file for this run

name: Coverage
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install and Test Coverage 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm i
npm run test:coverage
- uses: codecov/codecov-action@v4
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: coverage/lcov.info # https://community.codecov.com/t/wrong-coverage-percentage/1775/12
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}