This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new a5b2b15  fix(CI): Update lint workflow so that the Markdown and YAML 
linters run (#1254)
a5b2b15 is described below

commit a5b2b1567a141fa2a59d0c32ba0d39b715d72cb6
Author: John Bampton <[email protected]>
AuthorDate: Tue Jan 12 10:55:07 2021 +1000

    fix(CI): Update lint workflow so that the Markdown and YAML linters run 
(#1254)
    
    Due to the ASF's policies changing we cannot use the original GitHub 
Actions for linting as they are not approved
    
    Lint some YAML
    
    Co-authored-by: ็š่‡ด่ฟœ <[email protected]>
---
 .github/workflows/lint.yml          | 11 ++++++++++-
 api/test/docker/apisix_config.yaml  |  2 +-
 api/test/docker/apisix_config2.yaml |  2 +-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 5c2c78b..a7f824d 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -19,5 +19,14 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+      - uses: actions/setup-python@v2
+        with:
+          python-version: '3.x'  # Version range or exact version of a Python 
version to use, using SemVer's version range syntax
+          architecture: 'x64'  # optional x64 or x86. Defaults to x64 if not 
specified
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install yamllint
       - name: ๐Ÿงน YAML Lint
-        uses: ibiqlik/action-yamllint@v3
+        run: |
+          yamllint .
diff --git a/api/test/docker/apisix_config.yaml 
b/api/test/docker/apisix_config.yaml
index e292839..00fc878 100644
--- a/api/test/docker/apisix_config.yaml
+++ b/api/test/docker/apisix_config.yaml
@@ -22,7 +22,7 @@ etcd:
     - "http://172.16.238.10:2379";
     - "http://172.16.238.11:2379";
     - "http://172.16.238.12:2379";
-  resync_delay: 0.1 # sync data from etcd quickly for e2e test
+  resync_delay: 0.1  # sync data from etcd quickly for e2e test
 
 apisix:
   id: "apisix-server1"
diff --git a/api/test/docker/apisix_config2.yaml 
b/api/test/docker/apisix_config2.yaml
index 1ab8583..bd78898 100644
--- a/api/test/docker/apisix_config2.yaml
+++ b/api/test/docker/apisix_config2.yaml
@@ -22,7 +22,7 @@ etcd:
     - "http://172.16.238.10:2379";
     - "http://172.16.238.11:2379";
     - "http://172.16.238.12:2379";
-  resync_delay: 0.1 # sync data from etcd quickly for e2e test
+  resync_delay: 0.1  # sync data from etcd quickly for e2e test
 
 apisix:
   id: "apisix-server2"

Reply via email to