You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/10/25 05:02:45 UTC
[incubator-devlake] branch main updated: fix(ci): fix yaml lint not run (#3562)
This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new a93f5cf2 fix(ci): fix yaml lint not run (#3562)
a93f5cf2 is described below
commit a93f5cf2325b2fdb5d0827b1cb50cb8425d5592b
Author: Ji Bin <ma...@live.com>
AuthorDate: Tue Oct 25 13:02:40 2022 +0800
fix(ci): fix yaml lint not run (#3562)
- do not use karancode/yamllint-github-action@master
- use `helm lint` for lint helm chart
- use github/super-linter/slim@v4 for other listed YAMLs
---
.github/workflows/yaml-lint.yml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml
index 9bba4bef..3dae3f89 100644
--- a/.github/workflows/yaml-lint.yml
+++ b/.github/workflows/yaml-lint.yml
@@ -22,21 +22,21 @@ on:
- main
pull_request:
jobs:
- yamlint-helm:
+ helm-lint:
name: lint for helm chart
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install latest helm
run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- - name: helm template for chart
- run: helm template test deployment/helm > helm-deployment.yaml
- - name: yamllint
- uses: karancode/yamllint-github-action@master
- with:
- yamllint_file_or_dir: helm-deployment.yaml
- yamllint_strict: false
- yamllint_comment: true
+ - name: lint helm chart
+ run: helm lint deployment/helm --strict
+ yaml-lint:
+ name: lint for yamls
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: github/super-linter/slim@v4
env:
- GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ FILTER_REGEX_INCLUDE: workspace/(docker-compose.yml|deployment/k8s/k8s-deploy.yaml)