Skip to content

Commit

Permalink
fix formatting workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Swapnil Tripathi <[email protected]>
  • Loading branch information
swaptr committed Aug 14, 2024
1 parent 4f1ccec commit 26c972e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,11 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

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

- name: Install Dependencies
run: yarn install
working-directory: src/frontend

- name: Format Frontend
run: yarn format
working-directory: src/frontend
- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write src/frontend/**/*.{ts,tsx}

- name: Post Formatting Check
run: git diff --exit-code
Expand Down Expand Up @@ -57,8 +49,8 @@ jobs:
- name: Format Backend
run: |
cd src/core
black .
working-directory: src/core

- name: Post Formatting Check
run: git diff --exit-code

0 comments on commit 26c972e

Please sign in to comment.