Added Code Formating Check GitHub Action

This commit is contained in:
Ahmad 2024-04-07 13:20:08 -04:00
parent 093c444a3d
commit ca1462cccb
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
5 changed files with 230 additions and 187 deletions

View file

@ -4,7 +4,6 @@ on:
push:
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
schedule:
- cron: '25 21 * * 1'

26
.github/workflows/prettier.yml vendored Normal file
View 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 .