diff --git a/.github/workflows/coverage-diff.yml b/.github/workflows/coverage-diff.yml index 8643e9e..339900a 100644 --- a/.github/workflows/coverage-diff.yml +++ b/.github/workflows/coverage-diff.yml @@ -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: diff --git a/.github/workflows/docs-and-coverage.yml b/.github/workflows/docs-and-coverage.yml index f9cf0c0..bf8a5a1 100644 --- a/.github/workflows/docs-and-coverage.yml +++ b/.github/workflows/docs-and-coverage.yml @@ -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 diff --git a/README.md b/README.md index aeb3bba..0b6f573 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ CI badge - - coverage + + Coverage Status Current NPM version 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" ] }