ci-demo-2/.woodpecker/.lint_general.yml

39 lines
935 B
YAML

---
clone:
git:
image: woodpeckerci/plugin-git
settings:
skip_verify: true
steps:
"prepare:commitlint":
image: bitnami/git:2.43.0
commands:
- git log -1 --pretty=%B >> commitlint.txt
"lint:commitlint":
group: lint
image: node:lts-slim
commands:
- npm install --save-dev conventional-changelog-conventionalcommits @commitlint/config-conventional commitlint@latest
- cat commitlint.txt
- cat commitlint.txt | npx commitlint
when:
- branch: [main, dev]
event: push
"lint:precommit":
group: lint
image: python:3.11.6-bullseye
commands:
- pip install pre-commit
- pre-commit install
- pre-commit run --all-files
"lint:credentials":
group: lint
image: ghcr.io/gitleaks/gitleaks:latest
commands:
- export HOME=/home/gitleaks
- gitleaks detect
when:
- branch: [main, dev]
event: push