mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-15 17:31:45 +08:00
58b0366c83
Due to the ASF's policies changing we cannot use the original GitHub Actions for linting as they are not approved Lint Markdown for rules: - MD012/no-multiple-blanks - MD032/blanks-around-lists
33 lines
944 B
YAML
33 lines
944 B
YAML
name: ❄️ Lint
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
markdownlint:
|
|
name: 🍇 Markdown
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: 🚀 Use Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.x'
|
|
- run: npm install -g markdownlint-cli@0.25.0
|
|
- run: markdownlint '**/*.md' --ignore node_modules
|
|
yamllint:
|
|
name: 🍺 YAML
|
|
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
|
|
run: |
|
|
yamllint .
|