Skip to content

Update README.md

Update README.md #172

Workflow file for this run

name: πŸ™ Install and run unit-tests
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: πŸ”± Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: βš™οΈ Set up Node
uses: actions/setup-node@v4
with:
node-version: 22.3
- name: βš™οΈ Set up pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
version: 9.3
- name: πŸ“ Get pnpm store directory
shell: bash
id: get-store-path
run: |
echo "store-path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- name: πŸ“¦ Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.get-store-path.outputs.store-path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🧰 Install dependencies
run: pnpm i --frozen-lockfile
- name: 🚦 Run tests
run: pnpm test:cov
timeout-minutes: 2
working-directory: lib
- name: β˜‚οΈ Coverage
if: always() && github.event_name == 'pull_request'
uses: romeovs/lcov-reporter-action@v0.4.0
with:
lcov-file: ./lib/lcov.info
delete-old-comments: true