ci: add prettier formatting (#130)

This commit is contained in:
winston authored and GitHub committed 2023-07-25 02:44:35 +02:00
1 parent d7f460f308
commit 79d77568ad
3 files changed
+34

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
name: Prettier
on:
pull_request:
push:
branches: [main]
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Run prettier
uses: creyD/[email protected]
with:
commit_message: "style: format code with prettier"
prettier_options: "--write styles/**/*.css"
+2
View File
@@ -0,0 +1,2 @@
/styles/codeberg/
/styles/reddit/
+10
View File
@@ -0,0 +1,10 @@
{
"overrides": [
{
"files": "styles/**/*.css",
"options": {
"parser": "less"
}
}
]
}