38 lines
914 B
YAML
38 lines
914 B
YAML
---
|
|
when:
|
|
event: [push, tag]
|
|
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":
|
|
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":
|
|
image: python:3.11.6-bullseye
|
|
commands:
|
|
- pip install pre-commit
|
|
- pre-commit install
|
|
- pre-commit run --all-files
|
|
"lint:credentials":
|
|
image: ghcr.io/gitleaks/gitleaks:latest
|
|
commands:
|
|
- export HOME=/home/gitleaks
|
|
- gitleaks detect
|
|
when:
|
|
- branch: [main, dev]
|
|
event: push
|