diff --git a/.github/workflows/coverage-diff.yml b/.github/workflows/coverage-diff.yml
index 8643e9e..b393ee1 100644
--- a/.github/workflows/coverage-diff.yml
+++ b/.github/workflows/coverage-diff.yml
@@ -6,34 +6,35 @@ 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
@@ -41,5 +42,3 @@ jobs:
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
diff --git a/.github/workflows/docs-and-coverage.yml b/.github/workflows/docs-and-coverage.yml
index f9cf0c0..3dcf7b8 100644
--- a/.github/workflows/docs-and-coverage.yml
+++ b/.github/workflows/docs-and-coverage.yml
@@ -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
diff --git a/README.md b/README.md
index aeb3bba..0b6f573 100644
--- a/README.md
+++ b/README.md
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/tsconfig.test-dts.json b/tsconfig.test-dts.json
index 94f076b..6793ef5 100644
--- a/tsconfig.test-dts.json
+++ b/tsconfig.test-dts.json
@@ -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"
]
}