2020-12-15 09:29:47 +08:00
|
|
|
name: ❄️ Lint
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-02-16 12:14:46 +08:00
|
|
|
trailing-whitespace:
|
|
|
|
name: 🌌 Trailing whitespace
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 🧹 Check for trailing whitespace
|
2021-05-10 11:59:51 +08:00
|
|
|
run: "! git grep -EIn $'[ \t]+$'"
|
2021-05-10 08:41:49 +08:00
|
|
|
misc:
|
|
|
|
name: misc checker
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code.
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- 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
|
2021-05-11 19:41:30 +08:00
|
|
|
- name: License
|
|
|
|
run: |
|
|
|
|
make license-check
|
|
|
|
- name: Plugin Code
|
|
|
|
run: |
|
|
|
|
sudo bash ./utils/check-plugins-code.sh
|