Skip to content

Commit

Permalink
fix(CI): Update lint workflow so that the Markdown and YAML linters run
Browse files Browse the repository at this point in the history
Due to the ASF's policies changing we cannot use the original GitHub Actions for linting as they are not approved

Lint some YAML
  • Loading branch information
jbampton committed Jan 10, 2021
1 parent b290846 commit 0cb3292
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
2 changes: 1 addition & 1 deletion api/test/docker/apisix_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion api/test/docker/apisix_config2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0cb3292

Please sign in to comment.