Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
asafshen committed Dec 26, 2023
1 parent b7b08d3 commit 54143bb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 25 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,15 @@ jobs:
env:
CI: true
# NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }}
- name: Testing Lib
run: npm run test:lib
- name: Testing Demo App
run: npm run test:app
# - name: Coverage check
# uses: devmasx/[email protected]
# with:
# type: lcov
# min_coverage: 94.5
# result_path: coverage/lcov.info
# token: ${{ github.token }}
- name: Testing
run: npm run test
- name: Coverage check
uses: devmasx/[email protected]
with:
type: lcov
min_coverage: 90.0
result_path: coverage/lcov.info
token: ${{ github.token }}

license-validation:
name: 🪪 License Validation
Expand Down
6 changes: 0 additions & 6 deletions jest.app.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions jest.base.config.js → jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
roots: ['<rootDir>/projects/angular-sdk', '<rootDir>/projects/demo-app'],
collectCoverage: true,
coverageDirectory: 'coverage',
collectCoverageFrom: ['projects/**/*.{js,ts}'],
transform: {
'^.+\\.(ts|js|html)$': [
'jest-preset-angular',
Expand Down
6 changes: 0 additions & 6 deletions jest.lib.config.js

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"build:lib": "ng build angular-sdk",
"build:app": "ng build demo-app",
"watch": "ng build --watch --configuration development",
"test:lib": "jest --config jest.lib.config.js",
"test:app": "jest --config jest.app.config.js",
"test": "jest --config jest.config.js",
"lint": "ng lint",
"format": "prettier . -w --ignore-path .gitignore",
"format-check": "prettier . --check --ignore-path .gitignore",
Expand Down

0 comments on commit 54143bb

Please sign in to comment.