Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: autofix.ci
on:
pull_request:
types: [review_requested, ready_for_review]
push:
branches: ['main']
permissions:
contents: read

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: '20'

- run: pnpm install

- name: Run ESLint
run: pnpm fix

- name: Run Prettier
run: pnpm format

- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"check:format": "prettier . --check",
"check:types": "dotenv -e .env.local -- turbo run check --cache-dir=.turbo",
"check:lint": "eslint . --ext .ts,.tsx --ignore-path .gitignore",
"check": "pnpm check:format && pnpm check:lint && pnpm check:types",
"check": "pnpm check:lint && pnpm check:types",
"fix": "eslint --fix . --ext .ts,.tsx --ignore-path .gitignore",
"build:all": "dotenv -e .env.local -- turbo run build --cache-dir=.turbo",
"build": "pnpm run -r build",
"build:ee": "pnpm run -r ee:build",
Expand Down