Skip to content

Demo on how coverage workflow can be added to github

Notifications You must be signed in to change notification settings

hendaniel/tdd-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo of unit testing report tracking

Example: Go to this PR

Workflow:

name: Reporting unit test coverage
on: [push]
jobs:
  run:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [15.x]    
    steps:
    - uses: actions/checkout@master
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
    - name: Generate coverage report
      run: |
        npm ci
        npm test -- --coverage --watchAll=false
    - name: Upload coverage to Codecov
      uses: codecov/codecov-action@v2
      with:
        fail_ci_if_error: true
        files: ./coverage/clover.xml
        flags: unittests
        name: codecov-umbrella

About

Demo on how coverage workflow can be added to github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published