Skip to content
Merged
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
27 changes: 13 additions & 14 deletions .github/workflows/coverage-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,39 @@ on:
jobs:
run-tests-check-coverage:
name: Run tests & check coverage
runs-on: ubuntu-latest
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:
name: Send coverage to Coveralls
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v7

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

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

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

- name: Generate version
run: pnpm generate:version

- name: Build
run: pnpm build

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

- 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
30 changes: 30 additions & 0 deletions .github/workflows/docs-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,33 @@ jobs:
uses: fingerprintjs/dx-team-toolkit/.github/workflows/docs-and-coverage.yml@v1
with:
run-after-install: pnpm generate:version

send-coverage-to-coveralls:
name: Send coverage to Coveralls
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@v6

- name: Install Node
uses: actions/setup-node@v7
with:
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Generate version
run: pnpm generate:version

- name: Run tests with coverage
run: pnpm test:coverage

- 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
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