.github/workflows/ci:cover.yml
name: ci:cover
on:
- push
- pull_request
jobs:
cover:
name: Continuous integration (code coverage)
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install 📦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true
- name: Test and record coverage 🔬
run: yarn cover
- name: Publish coverage report 📃
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true