apisix/.github/workflows/lint.yml
dependabot[bot] 9abd12952d
chore(deps): bump actions/checkout from 2.3.4 to 2.3.5 (#5262)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 17:46:02 +08:00

31 lines
866 B
YAML

name: ❄️ Lint
on: [pull_request]
jobs:
trailing-whitespace:
name: 🌌 Trailing whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- 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.5
- 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: Plugin Code
run: |
sudo bash ./utils/check-plugins-code.sh