Skip to content

Commit

Permalink
Add checks to ensure stability of package
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-kadhe committed Mar 20, 2024
1 parent 1333eda commit fe39b2d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/prerequisites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Prerequisites

on:
pull_request:
types: [synchronize, opened, edited, ready_for_review, reopened, unlocked]
branches: [main, development]

permissions:
checks: write
contents: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Run tests and generate coverage
uses: ArtiomTr/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
threshold: 90
3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config: Config = {
// collectCoverageFrom: undefined,

// The directory where Jest should output its coverage files
coverageDirectory: 'tests/coverage',
coverageDirectory: 'tests/unit/coverage',

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
Expand All @@ -40,6 +40,7 @@ const config: Config = {
'json',
'text',
'lcov',
'text-summary',
'clover'
],

Expand Down

0 comments on commit fe39b2d

Please sign in to comment.