2023-05-08 15:55:18 +00:00
|
|
|
name: Test Runner
|
|
|
|
|
2023-05-11 13:55:03 +00:00
|
|
|
on: pull_request
|
2023-05-08 15:55:18 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-05-11 12:02:58 +00:00
|
|
|
name: Tests
|
2023-05-08 15:55:18 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: '20.x'
|
2023-05-11 09:45:19 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
2023-05-11 13:55:03 +00:00
|
|
|
- name: Test Coverage
|
|
|
|
id: testCoverage
|
|
|
|
uses: anuraag016/Jest-Coverage-Diff@master
|
|
|
|
with:
|
|
|
|
fullCoverageDiff: false
|
|
|
|
runCommand: 'yarn jest --collectCoverageFrom=''["src/**/*.{js,jsx,ts,tsx}"]'' --coverage --collectCoverage=true --coverageDirectory=''./'' --coverageReporters=''json-summary'' --forceExit --detectOpenHandles __tests__/**/*.test.*'
|
|
|
|
delta: 0.5
|
2023-05-11 12:02:58 +00:00
|
|
|
# - name: Upload coverage reports to Codecov
|
|
|
|
# uses: codecov/codecov-action@v3
|
|
|
|
# with:
|
|
|
|
# token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
# files: coverage/lcov.info
|