Merge pull request #212 from fingerprintjs/rc #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-run-tests: | |
runs-on: ubuntu-20.04 | |
name: Build & run tests & publish coverage | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
- name: Install pnpm | |
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371 | |
with: | |
version: 8 | |
- name: Install Dependencies and prepare packages | |
run: pnpm install | |
- name: Run test | |
run: pnpm test:coverage | |
- name: Create Coverage Badges | |
uses: jaywcjlove/coverage-badges-cli@e07f25709cd25486855c1ba1b26da53576ff3620 | |
with: | |
source: coverage/coverage-summary.json | |
output: coverage/lcov-report/badges.svg | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@8817a56e5bfec6e2b08345c81f4d422db53a2cdc | |
with: | |
branch: gh-pages | |
folder: ./coverage/lcov-report/ |