Merge pull request #39 from goteo/feature/GV4-110
GV4-110: Add prettier check to PR workflow
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Prettier Format Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
format-check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Run Prettier check
|
||||
run: pnpm check
|
||||
@@ -27,5 +27,4 @@ pnpm-debug.log*
|
||||
.vscode/
|
||||
|
||||
#Other
|
||||
pnpm-lock.yaml
|
||||
yarn.lock
|
||||
|
||||
+3
-1
@@ -10,7 +10,9 @@
|
||||
"format": "eslint --fix . && prettier --write .",
|
||||
"format:eslint": "eslint --fix . ",
|
||||
"format:prettier": "prettier --write .",
|
||||
"openapi": "openapi-ts"
|
||||
"openapi": "openapi-ts",
|
||||
"check:format:prettier": "prettier --check . --plugin prettier-plugin-astro --plugin prettier-plugin-svelte",
|
||||
"check": "pnpm check:format:prettier"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^9.1.3",
|
||||
|
||||
Generated
+6186
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user