From 0cb32922e7b194a05216068bb9893f8413cf284f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 10 Jan 2021 21:23:14 +1000 Subject: [PATCH] fix(CI): Update lint workflow so that the Markdown and YAML linters run Due to the ASF's policies changing we cannot use the original GitHub Actions for linting as they are not approved Lint some YAML --- .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 5c2c78bd51..a7f824dc57 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 e292839ffc..00fc8782ad 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 1ab8583af0..bd788988c9 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"