chore: add ci script #8
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: Report test coverage | |
on: | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ⚙️ | |
uses: actions/checkout@v3 | |
- name: Setup node 🔧 | |
uses: actions/setup-node@v3 | |
- name: Install dependencies 📦 | |
run: npm ci | |
- name: Unit Testing 🔎 | |
run: CI=true npm run test:ci | |
- uses: ArtiomTr/jest-coverage-report-action@v2 | |
with: | |
test-script: npm run test:ci | |
coverage-file: report.json | |
annotations: none |