Merge pull request #39 from goteo/feature/GV4-110

GV4-110: Add prettier check to PR workflow
This commit is contained in:
2025-05-15 10:39:40 +02:00
committed by GitHub
4 changed files with 6220 additions and 2 deletions
+31
View File
@@ -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
-1
View File
@@ -27,5 +27,4 @@ pnpm-debug.log*
.vscode/
#Other
pnpm-lock.yaml
yarn.lock
+3 -1
View File
@@ -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",
+6186
View File
File diff suppressed because it is too large Load Diff