From a0d89a93a629b2d32afcffb4ef2f7debe78138ce Mon Sep 17 00:00:00 2001 From: Claw Date: Tue, 19 May 2026 13:53:46 +0000 Subject: [PATCH 1/3] feat(ci): add lint pipeline for PHP, CSS and HTML (#44) --- .gitea/workflows/lint.yml | 66 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..c4c2481 --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,66 @@ +name: Lint + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint-php: + name: PHP Syntax Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install PHP + run: | + apt-get update -qq && apt-get install -y -qq php-cli > /dev/null 2>&1 + + - name: PHP Lint + run: | + errors=0 + while IFS= read -r file; do + if ! php -l "$file" > /dev/null 2>&1; then + echo "❌ Syntax error in $file" + php -l "$file" + errors=1 + fi + done < <(find . -name "*.php" -not -path "./vendor/*") + if [ "$errors" -eq 1 ]; then + echo "::error::PHP lint check failed" + exit 1 + fi + echo "✅ All PHP files pass syntax check" + + lint-css: + name: CSS Lint (stylelint) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Node.js & stylelint + run: | + apt-get update -qq && apt-get install -y -qq npm nodejs > /dev/null 2>&1 + npm install -g stylelint stylelint-config-standard stylelint-prettier > /dev/null 2>&1 + + - name: CSS Lint + run: | + npx stylelint "**/*.css" --config .stylelintrc.json --allow-empty-input + echo "✅ All CSS files pass lint" + + lint-html: + name: HTML Lint (htmlhint) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Node.js & htmlhint + run: | + apt-get update -qq && apt-get install -y -qq npm nodejs > /dev/null 2>&1 + npm install -g htmlhint > /dev/null 2>&1 + + - name: HTML Lint + run: | + npx htmlhint "**/*.html" --config .htmlhintrc + echo "✅ All HTML files pass lint" From a0615d10e27bba3ab2dd902ee1a9cfeefd98cdea Mon Sep 17 00:00:00 2001 From: Claw Date: Tue, 19 May 2026 13:58:11 +0000 Subject: [PATCH 2/3] =?UTF-8?q?fix(css):=20kebab-case=20keyframe=20name=20?= =?UTF-8?q?and=20empty=20line=20before=20rule=20fix(php):=20duplicate=20id?= =?UTF-8?q?=20'form-result'=20=E2=86=92=20'form-errors'=20for=20error=20co?= =?UTF-8?q?ntainer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/haus-schleusingen.css | 5 +++-- index.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/css/haus-schleusingen.css b/css/haus-schleusingen.css index ccb748d..a4bab37 100644 --- a/css/haus-schleusingen.css +++ b/css/haus-schleusingen.css @@ -1216,7 +1216,7 @@ footer { gap: 0; z-index: 95; border-bottom: 1px solid var(--warm); - animation: slideDown 0.3s ease; + animation: slide-down 0.3s ease; } nav.mobile-open .nav-links a { @@ -1239,11 +1239,12 @@ footer { background: transparent; } - @keyframes slideDown { + @keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } + to { opacity: 1; transform: translateY(0); diff --git a/index.php b/index.php index 816e158..c3539df 100644 --- a/index.php +++ b/index.php @@ -737,7 +737,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { -
+
  • From afbf4ef80e42407812da292650486582cc2f42db Mon Sep 17 00:00:00 2001 From: Claw Date: Tue, 19 May 2026 14:04:59 +0000 Subject: [PATCH 3/3] fix(ci): run lint on all branches, not just main --- .gitea/workflows/lint.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index c4c2481..af1fd53 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -2,9 +2,7 @@ name: Lint on: push: - branches: [main] pull_request: - branches: [main] jobs: lint-php: