Skip to content

Only auto-merge after creating and updating PRs #222

Only auto-merge after creating and updating PRs

Only auto-merge after creating and updating PRs #222

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: ci
jobs:
tests:
strategy:
matrix:
node: [18, 20]
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: corepack enable && corepack prepare
# Note: actions/setup-node doesn't yet provide parameters for corepack, we need to run it again after enabling it
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: node --version
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm lint
- name: Run tests
run: pnpm test