2021-02-10 11:18:49 +08:00
|
|
|
name: misc
|
2020-12-10 23:05:36 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
2020-12-18 08:29:17 +08:00
|
|
|
branches: [master]
|
2020-12-10 23:05:36 +08:00
|
|
|
jobs:
|
2021-02-10 11:18:49 +08:00
|
|
|
misc:
|
|
|
|
name: misc checker
|
2020-12-10 23:05:36 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code.
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
wget -O - -q https://git.io/misspell | sh -s -- -b .
|
|
|
|
- name: Misspell
|
|
|
|
run: |
|
2021-01-12 09:03:14 +08:00
|
|
|
find *.md apisix doc bin t -not -path "t/toolkit/*.lua" -type f | xargs ./misspell -error
|
2021-02-10 11:18:49 +08:00
|
|
|
- name: Merge conflict
|
|
|
|
run: |
|
|
|
|
grep "^<<<<<<< HEAD" $(git ls-files | grep -v "t/toolkit" | xargs) && exit 1 || true
|