-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28a5014
commit 6a2648a
Showing
1 changed file
with
32 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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] | ||
|