.github/workflows/unit-tests.yml
name: Test Coverage
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
coverage-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: install
run: run install
- run: yarn run coverage
- name: publish test coverage to code climate
if: always() && env.CC_TEST_REPORTER_ID != ''
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/clover.xml:clover