forked from apache/apisix
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 961 Bytes
/
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
name: ❄️ Lint
on: [push, pull_request]
permissions:
contents: read
jobs:
misc:
name: misc checker
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/[email protected]
- name: spell check
run: |
pip install codespell==2.1.0
git grep --cached -l '' | xargs codespell --ignore-words=.ignore_words
- name: Merge conflict
run: |
bash ./utils/check-merge-conflict.sh
- name: Plugin Code
run: |
bash ./utils/check-plugins-code.sh
ci-eclint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code
uses: actions/[email protected]
- name: Setup Nodejs env
uses: actions/[email protected]
with:
node-version: '12'
- name: Install eclint
run: |
sudo npm install -g eclint
- name: Run eclint
run: |
eclint check