mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 21:17:36 +08:00
c9d3cba845
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
932 B
YAML
34 lines
932 B
YAML
name: ❄️ Lint
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
trailing-whitespace:
|
|
name: 🌌 Trailing whitespace
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
- name: 🧹 Check for trailing whitespace
|
|
run: "! git grep -EIn $'[ \t]+$'"
|
|
misc:
|
|
name: misc checker
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code.
|
|
uses: actions/checkout@v2.3.4
|
|
- name: Install
|
|
run: |
|
|
wget -O - -q https://git.io/misspell | sh -s -- -b .
|
|
- name: Misspell
|
|
run: |
|
|
git ls-files | grep -v "docs/es" | grep -v "t/toolkit" | xargs ./misspell -error
|
|
- name: Merge conflict
|
|
run: |
|
|
grep "^<<<<<<< HEAD" $(git ls-files | grep -v "t/toolkit" | xargs) && exit 1 || true
|
|
- name: License
|
|
run: |
|
|
make license-check
|
|
- name: Plugin Code
|
|
run: |
|
|
sudo bash ./utils/check-plugins-code.sh
|