Skip to content

Commit

Permalink
[CI] Implement Prettier CI Check for Code Consistency (#44)
Browse files Browse the repository at this point in the history
* Added  `prettier-ci.yaml`

* Added push event trigger

Signed-off-by: samadpls <[email protected]>

* Refactored

---------

Signed-off-by: samadpls <[email protected]>
  • Loading branch information
samadpls authored Mar 4, 2024
1 parent dce0493 commit ab9910b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: prettier

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
prettier-check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '20'

- name: Install Prettier
run: npm install --save-dev prettier

- name: Run Prettier Check
run: npx prettier --check .

0 comments on commit ab9910b

Please sign in to comment.