Skip to content

Commit

Permalink
test format on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamir198 committed Mar 18, 2024
1 parent 0de65f9 commit 07d8a55
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Pull Request Mandatory Checks
run-name: Pull Request Checks
on: [pull_request]
on:
pull_request:
branches:
- main

jobs:
Check-Formatting:
runs-on: ubuntu-latest
Expand All @@ -10,10 +13,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npx prettier --write . --config ./.prettierrc
- run: npm install
- run: npm run format
- name: Check formatting changes
run: git diff --exit-code

Check-Lint:
runs-on: ubuntu-latest
needs: [Check-Formatting]
steps:
- uses: actions/checkout@v3
- name: Check Lint Using Node 18.x (LTS)
Expand All @@ -25,6 +32,7 @@ jobs:

Check-Build:
runs-on: ubuntu-latest
needs: [Check-Formatting]
steps:
- uses: actions/checkout@v3
- name: Check Build Using Node 18.x LTS
Expand Down

0 comments on commit 07d8a55

Please sign in to comment.