Skip to content

chore: add pnpm packageManager #343

chore: add pnpm packageManager

chore: add pnpm packageManager #343

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [master]
jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: "latest"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run linter
run: pnpm xo
check-ts:
name: Run typescript checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: "latest"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run typescript checks
run: pnpm check:ts
test:
name: Run tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: "latest"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test -- --runInBand --ci --reporters=default --reporters=github-actions
- name: Upload code coverage to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}