apisix/.github/workflows/lint.yml
dependabot[bot] 719c538814
chore(deps): bump actions/setup-node from 2.5.0 to 2.5.1 (#5952)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-29 21:06:02 +08:00

45 lines
1003 B
YAML

name: ❄️ Lint
on: [pull_request]
jobs:
misc:
name: misc checker
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v2.4.0
- name: Install
run: |
wget -O - -q https://git.io/misspell | sh -s -- -b .
- name: Misspell
run: |
git grep --cached -l '' | xargs ./misspell -error
- name: Merge conflict
run: |
grep "^<<<<<<< HEAD" $(git grep --cached -l '' | xargs) && exit 1 || true
- name: Plugin Code
run: |
sudo bash ./utils/check-plugins-code.sh
ci-eclint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code
uses: actions/checkout@v2.4.0
- name: Setup Nodejs env
uses: actions/setup-node@v2.5.1
with:
node-version: '12'
- name: Install eclint
run: |
sudo npm install -g eclint
- name: Run eclint
run: |
eclint check