Skip to content

Commit 0cb3292

Browse files
committed
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
1 parent b290846 commit 0cb3292

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/lint.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v2
22+
- uses: actions/setup-python@v2
23+
with:
24+
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
25+
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install yamllint
2230
- name: 🧹 YAML Lint
23-
uses: ibiqlik/action-yamllint@v3
31+
run: |
32+
yamllint .

api/test/docker/apisix_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ etcd:
2222
- "http://172.16.238.10:2379"
2323
- "http://172.16.238.11:2379"
2424
- "http://172.16.238.12:2379"
25-
resync_delay: 0.1 # sync data from etcd quickly for e2e test
25+
resync_delay: 0.1 # sync data from etcd quickly for e2e test
2626

2727
apisix:
2828
id: "apisix-server1"

api/test/docker/apisix_config2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ etcd:
2222
- "http://172.16.238.10:2379"
2323
- "http://172.16.238.11:2379"
2424
- "http://172.16.238.12:2379"
25-
resync_delay: 0.1 # sync data from etcd quickly for e2e test
25+
resync_delay: 0.1 # sync data from etcd quickly for e2e test
2626

2727
apisix:
2828
id: "apisix-server2"

0 commit comments

Comments
 (0)