.github/workflows/coverage-reporter.yml
name: Unit tests coverage report update
on:
push:
branches:
- master
tags:
- '!*' # Do not execute on tags
paths:
- src/*
- test/*
- '*.json'
jobs:
coverage:
name: coverage
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '14.x'
- run: npm install
- run: npm run build
- uses: paambaati/codeclimate-action@v2.7.2
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test:unit:coverage
debug: true