Skip to content

feat: add best-practices workflow #1

feat: add best-practices workflow

feat: add best-practices workflow #1

Workflow file for this run

name: Best Practices
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Run ESLint
run: pnpm run lint
format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

Check failure on line 30 in .github/workflows/best-practices.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/best-practices.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Run Prettier
run: pnpm run prettier