reorganize our CI stuff
This commit is contained in:
parent
22240f8365
commit
24b715d676
5 changed files with 51 additions and 40 deletions
42
.woodpecker/code-analisys.yaml
Normal file
42
.woodpecker/code-analisys.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
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:
|
||||
depth: 0
|
||||
|
||||
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:
|
||||
# Needed to generate coverage
|
||||
test:
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue