From 0b874828a7188fe489e86ee6551d2ba44bbb207f Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Thu, 18 Jul 2024 03:31:48 +0530 Subject: [PATCH] chore: add pint --- .github/workflows/ci.yaml | 4 ++++ .pint.hcl | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 .pint.hcl diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6394dfa73..8224474fd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,10 @@ jobs: run: make --always-make fmt && git diff --exit-code - name: Jsonnet linter run: make --always-make jsonnet-lint + - name: YAML linter (Pint) + uses: prymitive/pint-action@v1 + with: + config: "../../.pint.hcl" - name: Unit tests run: make --always-make test diff --git a/.pint.hcl b/.pint.hcl new file mode 100644 index 000000000..43211cc77 --- /dev/null +++ b/.pint.hcl @@ -0,0 +1,5 @@ +# Pint config to be used when running in a CI environment. + +ci { + include = ["prometheus_(rules|alerts).yaml"] +}