Skip to content

More

More #4

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: ['lts/*', 'lts/-1', 'latest']
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: 📦 Setup pnpm package manager
uses: pnpm/action-setup@v4
with:
run_install: false
- name: 🟢 Setup Node.js runtime
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'pnpm'
- name: Enable Corepack
run: corepack enable
- name: 📚 Install project dependencies
run: pnpm install
- name: 🧪 Run tests
run: pnpm test