Lint refs/heads/form-list-tests #61
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 | |
run-name: Lint ${{ github.ref }} | |
on: [push] | |
permissions: read-all | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out current branch | |
uses: actions/checkout@v4 | |
- name: Fetch main | |
run: git fetch origin main | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Runt lint-staged | |
run: pnpm exec lint-staged --diff origin/main |