Skip to content

chore: add check workflow for PRs and format files #2

chore: add check workflow for PRs and format files

chore: add check workflow for PRs and format files #2

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [main]
env:
NODE_VERSION: 20
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: ${{ env.NODE_VERSION }}
run_install: false
- uses: actions/setup-node@v3
with:
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
- name: Run check
run: pnpm run check