Add lint and unit-test woodpecker pipelines

Signed-off-by: Yorgos Saslis <yorgos.work@proton.me>
This commit is contained in:
Yorgos Saslis
2025-04-17 15:35:38 +03:00
parent 03d7f8ae6e
commit 2a7a430c4f
3 changed files with 54 additions and 0 deletions
+4
View File
@@ -40,3 +40,7 @@ steps:
from_secret: minio_access_key
secret_key:
from_secret: minio_secret_key
depends_on:
- lint
- unit-test
+30
View File
@@ -0,0 +1,30 @@
when:
- event: pull_request
- event: push
branch: main
- event: tag
ref: refs/namespaces/z6MkwPUeUS2fJMfc2HZN1RQTQcTTuhw4HhPySB8JeUg2mVvx/tags/v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z]+)?(\.[0-9]+)? # Matches v1.2.3, v1.2.3-rc, v1.2.3-rc.1, etc.
- event: tag
ref: refs/namespaces/z6MkkfM3tPXNPrPevKr3uSiQtHPuwnNhu2yUVjgd2jXVsVz5/tags/v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z]+)?(\.[0-9]+)? # Matches v1.2.3, v1.2.3-rc, v1.2.3-rc.1, etc.
steps:
lint_typescript:
image: docker.io/library/node:22.11.0
entrypoint:
- "/bin/bash"
- "-c"
- |
npm ci
npm run check-js
lint_rust:
image: docker.io/library/rust:bookworm
entrypoint:
- "/bin/bash"
- "-c"
- |
apt update
apt install -y libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev npm
rustup toolchain install
rustup component add rustfmt clippy
npm run check-rs
+20
View File
@@ -0,0 +1,20 @@
when:
- event: pull_request
- event: push
branch: main
- event: tag
ref: refs/namespaces/z6MkwPUeUS2fJMfc2HZN1RQTQcTTuhw4HhPySB8JeUg2mVvx/tags/v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z]+)?(\.[0-9]+)? # Matches v1.2.3, v1.2.3-rc, v1.2.3-rc.1, etc.
- event: tag
ref: refs/namespaces/z6MkkfM3tPXNPrPevKr3uSiQtHPuwnNhu2yUVjgd2jXVsVz5/tags/v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z]+)?(\.[0-9]+)? # Matches v1.2.3, v1.2.3-rc, v1.2.3-rc.1, etc.
steps:
unit-tests:
image: docker.io/library/node:22.11.0
entrypoint:
- "/bin/bash"
- "-c"
- |
npm ci
npm run test:unit
depends_on:
- lint