setup lint / check workflow #1
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: lint / check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
jobs: | |
lint: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- name: Enable pnpm | |
run: corepack enable pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run lint | |
run: pnpm lint | |
- name: Run check | |
run: pnpm check |