vinvoor: linting #117
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: Format and linting | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
format-and-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.15.1 | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm install | |
working-directory: vinvoor/ | |
- name: Run formatter | |
run: pnpm prettier --check . | |
working-directory: vinvoor/ | |
- name: Run Linter | |
run: pnpm eslint . --max-warnings=0 | |
working-directory: vinvoor/ |