From 3e6ac58e55c7d092ccf0649374f32c5488127cae Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 1 Aug 2026 20:52:36 +0300 Subject: [PATCH 01/13] ignores + better reporters --- vite.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 0ba2c7d31..e49883aaf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -243,7 +243,12 @@ export default defineConfig(async ({ mode, command }) => { exclude: [...configDefaults.exclude, 'test/e2e-playwright/**'], coverage: { provider: 'v8', - exclude: ['**/*.style.js', 'public/**'], + all: true, + reporter: [ + 'text-summary', + ['lcov', { subdir: './src' }], + ], + exclude: ['**/*.style.js', 'public/**', '**/*.scss'], }, browser: { enabled: true, From 160b8838f367b848e209cb32aac3e2b8fe671cc6 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 1 Aug 2026 20:55:20 +0300 Subject: [PATCH 02/13] lint --- vite.config.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index e49883aaf..7dee680ec 100644 --- a/vite.config.js +++ b/vite.config.js @@ -244,10 +244,7 @@ export default defineConfig(async ({ mode, command }) => { coverage: { provider: 'v8', all: true, - reporter: [ - 'text-summary', - ['lcov', { subdir: './src' }], - ], + reporter: ['text-summary', ['lcov', { subdir: './src' }]], exclude: ['**/*.style.js', 'public/**', '**/*.scss'], }, browser: { From ad2b96661e666cc4931d18275cc8d8eb7318874d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:17:08 +0300 Subject: [PATCH 03/13] 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 04/13] 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 06/13] 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 07/13] 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 From 2c4fe4fe681e2ab80d230bc472d35bfc84fc71eb Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:55:32 +0300 Subject: [PATCH 08/13] attempt 2 --- .woodpecker/test.yaml | 15 ++++++++------- sonar-project.properties | 2 ++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 sonar-project.properties diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 9f6aec0ad..32920021d 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -46,16 +46,17 @@ steps: fi code-analysis: - image: ghcr.io/j04n-f/sonar-plugin + image: sonarsource/sonar-scanner-cli:11 + entrypoint: [""] + + environment: + SONAR_TOKEN: + from_secret: sonarqube-token when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} - settings: - sonar_token: - from_secret: sonarqube-token - sonar_url: https://sonarqube.pleroma.dev - sonar_project_key: Pleroma-FE - sonar_project_name: "Pleroma FE" + commands: + - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}" upload-artifacts: image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..82d3a71a2 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.projectKey=Pleroma-FE +sonar.qualitygate.wait=true From 0516fef32896da73fd927dbde885dfade8a14af7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 18:57:26 +0300 Subject: [PATCH 09/13] fix --- .woodpecker/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 32920021d..36e76d985 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -55,8 +55,8 @@ steps: when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} - commands: - - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}" + commands: + - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}" upload-artifacts: image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0 From 1a4fa798c17e9e300fee6cbf3da24a55a376281c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 19:03:08 +0300 Subject: [PATCH 10/13] fix --- .woodpecker/test.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 36e76d985..dc2d6619f 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -47,7 +47,6 @@ steps: code-analysis: image: sonarsource/sonar-scanner-cli:11 - entrypoint: [""] environment: SONAR_TOKEN: From 41c6ddaf86f35dfe592a35b070aab80072d76e44 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 19:07:54 +0300 Subject: [PATCH 11/13] fix --- .woodpecker/test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index dc2d6619f..466f58e7e 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -51,11 +51,13 @@ steps: environment: SONAR_TOKEN: from_secret: sonarqube-token + SONAR_HOST_URL: https://sonarqube.pleroma.dev + SONAR_PROJECT_KEY: Pleroma-FE when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} commands: - - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}" + - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}" -Dsonar.projectKey="${SONAR_PROJECT_KEY}" upload-artifacts: image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0 From 12df46fd53407bddbaf1d086b3c8f925ee595385 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 19:15:59 +0300 Subject: [PATCH 12/13] use properties file? --- .woodpecker/test.yaml | 12 +++++------- sonar-project.properties | 3 ++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 466f58e7e..b4d8685fe 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -47,17 +47,15 @@ steps: code-analysis: image: sonarsource/sonar-scanner-cli:11 - - environment: - SONAR_TOKEN: - from_secret: sonarqube-token - SONAR_HOST_URL: https://sonarqube.pleroma.dev - SONAR_PROJECT_KEY: Pleroma-FE when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} + environment: + SONAR_TOKEN: + from_secret: sonarqube-token + entrypoint: *script_file_entrypoint commands: - - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}" -Dsonar.projectKey="${SONAR_PROJECT_KEY}" + - sonar-scanner upload-artifacts: image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0 diff --git a/sonar-project.properties b/sonar-project.properties index 82d3a71a2..15030e3cc 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,2 +1,3 @@ sonar.projectKey=Pleroma-FE -sonar.qualitygate.wait=true +sonar.qualitygatesonar.host.url.wait=true +sonar.host.url=https://sonarqube.pleroma.dev From f9918cd3544ead0405eee6b5c1c07c396273eb2a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Aug 2026 21:16:28 +0300 Subject: [PATCH 13/13] allow manual run --- .woodpecker/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index b4d8685fe..9c3c24a53 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -50,6 +50,8 @@ steps: when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} + - event: manual + branch: ${CI_REPO_DEFAULT_BRANCH} environment: SONAR_TOKEN: from_secret: sonarqube-token