Skip to content

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

chore: add check workflow for PRs and format files

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

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:
run_install: false
- uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
if: always()
- name: Run check
run: pnpm run check
# always run lint
if: always()