Skip to content

Commit ff972bf

Browse files
feat: add codecov coverage reporting to CI workflow (#29)
Co-authored-by: MichaelEakins <michael.eakins@protonmail.com>
1 parent f8a95d6 commit ff972bf

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/react-compat.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ jobs:
3636
run: |
3737
npm install --save-dev react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }}
3838
39-
- name: Run tests
40-
run: npm test
39+
- name: Run tests with coverage
40+
run: npm run test:coverage
41+
42+
- name: Upload coverage to Codecov
43+
if: matrix.react-version == '18'
44+
uses: codecov/codecov-action@v4
45+
with:
46+
files: ./coverage/lcov.info
47+
flags: unittests
48+
fail_ci_if_error: false
4149

4250
- name: Type check
4351
run: npm run type-check

0 commit comments

Comments
 (0)