Skip to content

Commit

Permalink
Added yamllint config
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <philip.schmid@isovalent.com>
  • Loading branch information
PhilipSchmid committed Nov 14, 2023
1 parent 13266d0 commit a60ad01
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: relaxed

rules:
indentation:
indent-sequences: false
line-length: disable

0 comments on commit a60ad01

Please sign in to comment.