From ad2b96661e666cc4931d18275cc8d8eb7318874d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:17:08 +0300 Subject: [PATCH 1/5] add sonarqube step --- .woodpecker/test.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 89f6f2f93..7ec7b975c 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -44,6 +44,14 @@ steps: [ "${CI_PIPELINE_EVENT}" = "pull_request" ] || zip -9qr ${CI_COMMIT_SHA:0:8}-screenshots.zip $(find . -type d -name __screenshots__) exit 1 fi + code-analysis: + image: ghcr.io/j04n-f/sonar-plugin + settings: + sonar_token: + from_secret: sonarqube-token + sonar_url: https://sonarqube.pleroma.dev + sonar_project_key: Pleroma-FE + sonar_project_name: "Pleroma FE" upload-artifacts: image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0 From 900214b9a3b6bc1c68cd2369bb9f60d33c4887e6 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:19:08 +0300 Subject: [PATCH 2/5] lint? --- .woodpecker/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 7ec7b975c..806908b85 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -44,6 +44,7 @@ steps: [ "${CI_PIPELINE_EVENT}" = "pull_request" ] || zip -9qr ${CI_COMMIT_SHA:0:8}-screenshots.zip $(find . -type d -name __screenshots__) exit 1 fi + code-analysis: image: ghcr.io/j04n-f/sonar-plugin settings: From 8126fd00f4f6265005309ea366bebc68d4c47d5d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:29:08 +0300 Subject: [PATCH 4/5] don't run on PRs (requires paid version) --- .woodpecker/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 806908b85..a088543e3 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -47,6 +47,8 @@ steps: code-analysis: image: ghcr.io/j04n-f/sonar-plugin + when: + - branch: ${CI_REPO_DEFAULT_BRANCH} settings: sonar_token: from_secret: sonarqube-token From dbcac0970b7cb633371a42199bde26c7ae0e5ec4 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:34:05 +0300 Subject: [PATCH 5/5] fix --- .woodpecker/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index a088543e3..9f6aec0ad 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -48,7 +48,8 @@ steps: code-analysis: image: ghcr.io/j04n-f/sonar-plugin when: - - branch: ${CI_REPO_DEFAULT_BRANCH} + - event: push + branch: ${CI_REPO_DEFAULT_BRANCH} settings: sonar_token: from_secret: sonarqube-token