Skip to content

Commit

Permalink
test: use codecov/codecov-action (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Layouwen authored Aug 13, 2024
1 parent 5df95ba commit a5bd008
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
on: ['push', 'pull_request']

jobs:
setup:
Expand Down Expand Up @@ -109,6 +105,11 @@ jobs:
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}

- name: coverage
run: npm test -- --coverage && bash <(curl -s https://codecov.io/bash)
run: npm test -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

needs: setup

0 comments on commit a5bd008

Please sign in to comment.