test forgejo actions

This commit is contained in:
2026-05-06 19:56:56 +02:00
parent 960dce8cbf
commit bcf1fc8b45
2 changed files with 29 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Format code with Prettier
on:
push:
branches: ["master"]
jobs:
format:
runs-on: linux
container: node:20-bookworm
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run Prettier
run: npx prettier --write .
- name: Commit changes (if any)
run: |
git config user.name "forgejo-bot"
git config user.email "forgejo-bot@local"
git add .
git diff --cached --quiet || git commit -m "chore: format with prettier"
git push
+1
View File
@@ -31,6 +31,7 @@
"eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2", "eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0", "globals": "^17.4.0",
"prettier": "^3.8.3",
"vite": "^8.0.4" "vite": "^8.0.4"
} }
} }