forgejo-helm/.woodpecker/lint.yml

72 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2023-01-03 14:25:32 +00:00
platform: linux/amd64
when:
2023-01-04 07:47:02 +00:00
event:
- pull_request
- tag
2023-01-04 07:47:02 +00:00
- push
2023-01-04 08:20:04 +00:00
branch:
2023-01-04 07:47:02 +00:00
- main
- release/**
2023-01-03 14:25:32 +00:00
pipeline:
2023-12-06 13:39:08 +00:00
prettier:
image: alpine:3.18.5
pull: true
commands:
- apk add nodejs npm
2023-12-06 13:50:35 +00:00
- npm ci
2023-12-06 13:39:08 +00:00
- npm run prettier
2023-12-06 13:50:35 +00:00
- npx markdownlint-cli .
2023-12-06 13:39:08 +00:00
2023-01-03 22:26:25 +00:00
deps:
image: alpine:3.18.5
2023-01-03 14:25:32 +00:00
pull: true
commands:
- apk add helm
2023-01-03 22:23:46 +00:00
- helm dependency build
2023-01-03 22:26:25 +00:00
helm-lint:
image: alpine:3.18.5
2023-01-03 22:26:25 +00:00
pull: true
commands:
- apk add helm
2023-01-03 14:25:32 +00:00
- helm lint
helm-template:
image: alpine:3.18.5
2023-01-03 14:25:32 +00:00
pull: true
commands:
- apk add helm
2023-01-03 14:25:32 +00:00
- helm template --debug gitea-helm .
helm-unittests:
image: alpine:3.18.5
pull: true
commands:
- apk add make helm git bash
- helm plugin install --version v0.3.6 https://github.com/helm-unittest/helm-unittest
- helm dependency update
- make unittests
2023-01-03 14:25:32 +00:00
verify-readme:
image: alpine:3.18.5
2023-01-03 14:25:32 +00:00
pull: true
commands:
- apk add make nodejs npm git
2023-01-03 14:25:32 +00:00
- make readme
- git diff --exit-code --name-only README.md
yaml-lint:
2023-12-06 13:39:08 +00:00
image: quay.io/helmpack/chart-testing:v3.10.1
pull: true
commands:
- yamllint -f colored .
2023-12-06 13:39:08 +00:00
ct-lint:
image: quay.io/helmpack/chart-testing:v3.10.1
pull: true
commands:
- git fetch --no-tags --filter=blob:none origin
- ct lint --config tools/ct.yml --charts .