chore: add check workflow for PRs and format files #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |