Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ jobs:
sort-values-order: file
- name: Check diff
run: |
git diff --exit-code README.md || { echo; echo "error: README.md is out of date. Please run `make build-docs` and commit the resulting file."; exit 1; }
git diff --exit-code README.md || { echo; echo "error: README.md is out of date. Please run `mise run build-docs` and commit the resulting file."; exit 1; }
14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

42 changes: 42 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[tools]
prek = "0.1.6"
helm = "3.19.0"
helm-docs = "1.14.2"
"ubi:helm-unittest/helm-unittest" = { version = "1.0.1", exe = "untt", rename_exe = "helm-unittest" }
yamlfmt = "0.17.2"

[tasks.set-version]
description = "Bump the version of the Helm chart"
usage = "mise run set-version <new_version>"
run = """
sed -i 's/^version: [0-9]\\{1,\\}\\.[0-9]\\{1,\\}\\.[0-9]\\{1,\\}/version: {{arg(name="version")}}/' application/Chart.yaml
"""

[tasks.install-hooks]
description = "Install Git pre-commit hooks"
run = "prek install --install-hooks"

[tasks.build-docs]
description = "Build the documentation"
run = """
# Keep args in sync with /.github/workflows/pull_request.yaml
helm-docs \\
--output-file=./../README.md \\
--template-files=./README.md.gotmpl \\
--sort-values-order=file
"""

[tasks.helm-lint]
description = "Lint the Helm chart"
run = "helm lint application"

# [tasks.yaml-fmt]
# description = "Format YAML files"
# run = """
# yamlfmt -formatter eof_newline=true,retain_line_breaks_single=true,pad_line_comments=2 \\
# pre-commit-config.yaml \\
# application/values.yaml \\
# application/values-test.yaml \\
# application/Chart.yaml \\
# application/tests/*.yaml
# """
5 changes: 4 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:best-practices"
],
"pre-commit": {
"enabled": true
},
"mise": {
"enabled": true
}
}
Loading