45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
---
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
skip_verify: true
|
|
steps:
|
|
"lint:precommit":
|
|
group: lint
|
|
image: dchevallier/pre-commit:latest
|
|
commands:
|
|
- pre-commit install
|
|
- pre-commit run --all-files
|
|
"lint:style":
|
|
group: lint
|
|
image: maven:3.9.4-eclipse-temurin-17
|
|
commands:
|
|
- mvn spotless:check
|
|
"lint:credentials":
|
|
group: lint
|
|
image: ghcr.io/gitleaks/gitleaks:latest
|
|
commands:
|
|
- export HOME=/home/gitleaks
|
|
- gitleaks detect
|
|
"lint:commitlint":
|
|
group: lint
|
|
image: node:lts-slim
|
|
commands:
|
|
- npm install --save-dev conventional-changelog-conventionalcommits @commitlint/config-conventional commitlint@latest
|
|
- echo "$CI_COMMIT_MESSAGE"x | npx commitlint
|
|
when:
|
|
- branch: [main, dev]
|
|
- event: push
|
|
"lint:hadolint":
|
|
group: lint
|
|
image: ghcr.io/hadolint/hadolint:latest-debian
|
|
commands:
|
|
- hadolint --version
|
|
- hadolint Dockerfile
|
|
"build:java":
|
|
group: build
|
|
image: gradle:8.4.0-jdk17-alpine
|
|
commands:
|
|
- ./gradlew build
|