pleroma-fe/.woodpecker/code-analisys.yaml

45 lines
960 B
YAML
Raw Normal View History

2026-08-05 17:31:06 +03:00
when:
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
- event: manual
branch: ${CI_REPO_DEFAULT_BRANCH}
labels:
platform: linux/amd64
memory: 'high'
depends_on:
- build
- test
- test-e2e
clone:
2026-08-05 17:39:57 +03:00
- name: git
image: woodpeckerci/plugin-git
settings:
depth: 0
2026-08-05 18:13:48 +03:00
partial: false
2026-08-05 17:31:06 +03:00
variables:
script_file_entrypoint: &script_file_entrypoint
- /bin/sh
- -c
- 'printf "%s" "$CI_SCRIPT" | base64 -d > /tmp/ci-script.sh && /bin/sh -xe /tmp/ci-script.sh'
steps:
2026-08-05 17:34:35 +03:00
generate-coverage:
2026-08-05 17:31:06 +03:00
image: mcr.microsoft.com/playwright:v1.61.0-jammy
environment:
FF_NETWORK_PER_BUILD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
entrypoint: *script_file_entrypoint
commands:
- yarn --frozen-lockfile
- yarn unit-ci-coverage
code-analysis:
image: sonarsource/sonar-scanner-cli:11
environment:
SONAR_TOKEN:
from_secret: sonarqube-token
entrypoint: sonar-scanner