Skip to content

Commit

Permalink
Add codecoverage (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera authored Aug 31, 2023
1 parent 9d976de commit 936a48b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,27 @@ jobs:
TAG: rc
UPDATE_VERSION: true
secrets: inherit

test-coverage-master:
name: "Upload test coverage on master"
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- name: Install
run: npm ci
- name: Build
run: |
npm run build
- name: Run Jest Test
run: |
npm run test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install
run: npm ci
- name: Build
Expand All @@ -33,6 +34,10 @@ jobs:
- name: Run Jest Test
run: |
npm run test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run Prettier
run: |
npm run lint:prettier
Expand Down

0 comments on commit 936a48b

Please sign in to comment.