From a60ad0105aa78a665f7d82ccade549d8d3142d7a Mon Sep 17 00:00:00 2001 From: Philip Schmid Date: Tue, 14 Nov 2023 18:11:17 +0100 Subject: [PATCH] Added yamllint config Signed-off-by: Philip Schmid --- .github/workflows/github-actions.yml | 52 ++++++++++++++-------------- .yamllint | 6 ++++ 2 files changed, 32 insertions(+), 26 deletions(-) create mode 100644 .yamllint diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index b4a1567..7a0f45f 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -3,45 +3,45 @@ on: pull_request: push: branches: - - main + - main jobs: formatting: runs-on: ubuntu-22.04 steps: - - name: Checkout - uses: actions/checkout@v4 - - name: terraform fmt - uses: dflook/terraform-fmt-check@v1 - with: - path: deploy/ + - name: Checkout + uses: actions/checkout@v4 + - name: terraform fmt + uses: dflook/terraform-fmt-check@v1 + with: + path: deploy/ docs: runs-on: ubuntu-22.04 needs: formatting steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Render terraform docs inside the README.md and push changes back to PR branch - uses: terraform-docs/gh-actions@d1c99433f7a1e5003ef213d70f89aaa47cb0b675 - with: - working-dir: deploy/ - output-file: README.md - output-method: inject - output-format: markdown table - indention: 3 - git-push: "true" + - name: Checkout + uses: actions/checkout@v4 + - name: Render terraform docs inside the README.md and push changes back to PR branch + uses: terraform-docs/gh-actions@d1c99433f7a1e5003ef213d70f89aaa47cb0b675 + with: + working-dir: deploy/ + output-file: README.md + output-method: inject + output-format: markdown table + indention: 3 + git-push: "true" validate-netpol-yamls: runs-on: ubuntu-22.04 needs: formatting steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Validate Network Policy YAML files - run: yamllint netpols/*/*.yaml + - name: Checkout + uses: actions/checkout@v4 + - name: Validate Network Policy YAML files + run: yamllint netpols/*/*.yaml validate-cilium-valuesyaml: runs-on: ubuntu-22.04 needs: formatting steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Validate Cilium Helm values YAML file - run: yamllint deploy/03-cilium-values-1.14.yaml + - name: Checkout + uses: actions/checkout@v4 + - name: Validate Cilium Helm values YAML file + run: yamllint deploy/03-cilium-values-1.14.yaml diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..d301ffb --- /dev/null +++ b/.yamllint @@ -0,0 +1,6 @@ +extends: relaxed + +rules: + indentation: + indent-sequences: false + line-length: disable