mars-v2-frontend/.github/workflows/test-runner.yaml
Yusuf Seyrek a59e880559
feat: fix code coverage workflow (#195)
* feat: create a dummy component for testing coverage workflow

* feat: add test for dummy component

* fix: delta

* fix: command

* fix: remove test file regexp

* chore: break tests

* fix: tests

* feat: add test for footer component

* fix: delete dummy component
2023-05-12 10:55:51 +03:00

25 lines
634 B
YAML

name: Test Runner
on: pull_request
jobs:
build:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: yarn
- name: Test Coverage
id: testCoverage
uses: anuraag016/Jest-Coverage-Diff@master
with:
fullCoverageDiff: false
runCommand: "yarn jest --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary' --forceExit --detectOpenHandles"
delta: 0.5