Skip to content

Commit

Permalink
Merge pull request #22 from EfrainAD/Efrain-WA-94_Add_Github_Action_w…
Browse files Browse the repository at this point in the history
…ith_prettier

Efrain-WA-94_Add_Github_Action_with_prettier
  • Loading branch information
EfrainAD authored Dec 7, 2023
2 parents 42be1be + e0fbeea commit 21418ed
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Prettier Check

on:
pull_request:
paths:
- '**/*.js' # Adjust the file patterns as needed

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

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Run Prettier Check
run: npx prettier --check .
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"semi": false,
"tabWidth": 3
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"start": "npx expo start",
"android": "npx expo start --android",
"ios": "npx expo start --ios",
"web": "npx expo start --web"
"web": "npx expo start --web",
"prettier:format": "prettier --write \"**/*.{ts,tsx,js,md,mdx,css,yaml}\"",
"prettier:check:ci": "prettier --check \"**/*.{ts,tsx,js,md,mdx,css,yaml}\""
},
"dependencies": {
"@expo-google-fonts/lato": "^0.2.3",
Expand Down

0 comments on commit 21418ed

Please sign in to comment.