mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 12:43:24 +00:00
Added Code Formating Check GitHub Action
This commit is contained in:
parent
093c444a3d
commit
ca1462cccb
5 changed files with 230 additions and 187 deletions
26
.github/workflows/prettier.yml
vendored
Normal file
26
.github/workflows/prettier.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Code Format Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
check-format:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '21'
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Check code format
|
||||
run: yarn prettier --check --ignore-path .prettierignore .
|
Loading…
Add table
Add a link
Reference in a new issue