Skip to content

Commit

Permalink
Fix github workflow event (#306)
Browse files Browse the repository at this point in the history
* Fix github workflow event

* jest coverage

---------

Co-authored-by: Nir Gur Arie <[email protected]>
  • Loading branch information
dorsha and nirgur authored Dec 22, 2023
1 parent c87a82d commit 2b3e521
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: push
on:
pull_request:
push:
branches:
- main

env:
NODE_VERSION: 16.14
Expand Down Expand Up @@ -93,10 +97,3 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }}
- name: Testing
run: npm test
- name: Coverage check
uses: devmasx/[email protected]
with:
type: lcov
min_coverage: 95
result_path: coverage/lcov.info
token: ${{ github.token }}
8 changes: 8 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ module.exports = {
collectCoverage: true,
coverageDirectory: 'coverage',
collectCoverageFrom: ['lib/**/*.{js,jsx,ts,tsx}'],
coverageThreshold: {
global: {
branches: 74,
functions: 97,
lines: 97,
statements: 97,
},
},

// A set of global variables that need to be available in all test environments
globals: {
Expand Down

0 comments on commit 2b3e521

Please sign in to comment.