forked from apache/apisix
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.22 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: ❄️ Lint
on: [pull_request]
jobs:
trailing-whitespace:
name: 🌌 Trailing whitespace
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v2.4.0
- 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.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.0
with:
node-version: '12'
- name: Install eclint
run: |
sudo npm install -g eclint
- name: Run eclint
run: |
eclint check