Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .github/workflows/coverage-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,16 @@ on:

jobs:
run-tests-check-coverage:
name: Run tests & check coverage
runs-on: ubuntu-latest
name: Run tests & check coverage
permissions:
checks: write
pull-requests: write

uses: fingerprintjs/dx-team-toolkit/.github/workflows/coverage-diff.yml@v1
with:
runAfterInstall: pnpm generate:version
send-coverage-to-coveralls:
steps:
- name: Checkout the repository
uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271

- name: Install latest node version
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'pnpm'

- name: Install Node packages
run: pnpm install --frozen-lockfile

- name: Generate version
run: pnpm generate:version

- name: Build
run: pnpm build

- name: Run tests and prepare coverage report
run: pnpm test:coverage

- name: Send Coverage to Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/docs-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ jobs:
uses: fingerprintjs/dx-team-toolkit/.github/workflows/docs-and-coverage.yml@v1
with:
run-after-install: pnpm generate:version
send-coverage-to-coveralls:
steps:
- name: Send Coverage to Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info
# make it optional to not fail the whole job if coveralls fails
continue-on-error: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<a href="https://github.com/fingerprintjs/angular/actions/workflows/ci.yml">
<img src="https://github.com/fingerprintjs/angular/actions/workflows/ci.yml/badge.svg" alt="CI badge" />
</a>
<a href="https://fingerprintjs.github.io/angular/coverage/">
<img src="https://fingerprintjs.github.io/angular/coverage/badges.svg" alt="coverage">
<a href="https://coveralls.io/github/fingerprintjs/angular?branch=main">
<img src="https://coveralls.io/repos/github/fingerprintjs/angular/badge.svg?branch=main" alt="Coverage Status" />
</a>
<a href="https://www.npmjs.com/package/@fingerprint/angular">
<img src="https://img.shields.io/npm/v/@fingerprint/angular.svg" alt="Current NPM version">
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.test-dts.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@
"es2020",
"dom"
],
"skipLibCheck": true,
"skipLibCheck": false,
"noEmit": true,
"isolatedModules": true,
"strict": true,
"experimentalDecorators": true,
"types": [],
"paths": {
"@fingerprint/angular": ["dist/fingerprintjs-pro-angular"]
}
},
"include": [
"dist/fingerprintjs-pro-angular/index.d.ts"
"dist/fingerprintjs-pro-angular/**/*.d.ts"
]
}
Loading