Skip to content

Commit

Permalink
Tune yamllint and break checks out
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Dec 4, 2024
1 parent 28a5014 commit 6a2648a
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions .github/workflows/helm_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,38 @@ on: pull_request
permissions: read-all

jobs:
lint-test:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install yamllint
run: |
python -m pip install --upgrade pip
pip install yamllint
- name: Run yamllint
run: |
yamllint -d "{extends: default, rules: {line-length: {level: warning}, braces: {level:warning}, key-duplicates: {level: error}, trailing-spaces: {level: error}}}" infra/helm/meshdb/
kubeconform:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Validate Kubernetes manifests
uses: docker://ghcr.io/yannh/kubeconform:latest
with:
entrypoint: '/kubeconform'
args: "-summary -output json infra/helm/meshdb/"

chart-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -38,26 +69,6 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

#- name: Validate Kubernetes manifests
# uses: docker://ghcr.io/yannh/kubeconform:latest
# with:
# entrypoint: '/kubeconform'
# args: "-summary -output json infra/helm/meshdb/"

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install yamllint
run: |
python -m pip install --upgrade pip
pip install yamllint
- name: Run yamllint
run: |
yamllint -d "{extends: default, rules: {key-duplicates: {level: error}, trailing-spaces: {level: error}}}" infra/helm/meshdb/
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]
Expand Down

0 comments on commit 6a2648a

Please sign in to comment.