Skip to content

Commit

Permalink
feat: added codecov configs
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Aug 21, 2024
1 parent 5e4632c commit 81df4b2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,30 @@ jobs:
steps:
- name: Check AVT Runner job status
if: ${{ needs.avt-runner.result != 'success' }}
run: exit 1
run: exit 1
on:
push:
paths:
- "packages/react/src/components/**"
jobs:
build:
runs-on: ubuntu-latest
name: Test JS frontend
defaults:
run:
working-directory: ./packages/react/src/components
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install requirements
run: npm install
- name: Run tests and collect coverage
run: npm run test
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: jest-components
16 changes: 16 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
coverage:
status:
project: off
patch: off

flag_management:
default_rules:
carryforward: true
individual_flags:
- name: jest-components
paths:
- packages/react/src/components/
statuses:
- type: project
target: auto
threshold: 1%

0 comments on commit 81df4b2

Please sign in to comment.