From 12ffb25d36685a12149e8e69965a9f8e5825fa3e Mon Sep 17 00:00:00 2001 From: juzhiyuan Date: Sat, 16 Jan 2021 21:33:42 +0800 Subject: [PATCH 1/4] ci: added checker --- .github/workflows/checker.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/checker.yaml diff --git a/.github/workflows/checker.yaml b/.github/workflows/checker.yaml new file mode 100644 index 0000000..af8cd4e --- /dev/null +++ b/.github/workflows/checker.yaml @@ -0,0 +1,29 @@ +name: 🐱 Checker + +on: [pull_request] + +jobs: + # 确保 PR 中超链接有效性 + markdown-link-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + check-modified-files-only: 'yes' + + # 检查 PR 中英文单词拼写正确性 + spell-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install mispell + run: | + wget -O - -q https://git.io/misspell | sh -s -- -b . + - name: Check + run: | + find -E . -regex ".*\.(ts|js|json)" -type f | xargs ./misspell -error + find docs -type f | xargs ./misspell -error + find . -type f -maxdepth 1 | xargs ./misspell -error From c1f937da02d3b16b9a16966a56586450743bfa03 Mon Sep 17 00:00:00 2001 From: juzhiyuan Date: Sat, 16 Jan 2021 21:38:14 +0800 Subject: [PATCH 2/4] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=20checker=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{checker.yaml => checker.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{checker.yaml => checker.yml} (100%) diff --git a/.github/workflows/checker.yaml b/.github/workflows/checker.yml similarity index 100% rename from .github/workflows/checker.yaml rename to .github/workflows/checker.yml From f4fb96597c9fda6870cfd1a4ee810d4a602bc769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=9A=E8=87=B4=E8=BF=9C?= Date: Sat, 16 Jan 2021 21:41:44 +0800 Subject: [PATCH 3/4] Update checker.yml --- .github/workflows/checker.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checker.yml b/.github/workflows/checker.yml index af8cd4e..edac3d5 100644 --- a/.github/workflows/checker.yml +++ b/.github/workflows/checker.yml @@ -1,6 +1,9 @@ name: 🐱 Checker -on: [pull_request] +on: + pull_request: + branches: + - master jobs: # 确保 PR 中超链接有效性 From 007b4c09daa6cb2697440cb7ac49c2107447dc2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=9A=E8=87=B4=E8=BF=9C?= Date: Sat, 16 Jan 2021 21:43:03 +0800 Subject: [PATCH 4/4] Update checker.yml --- .github/workflows/checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checker.yml b/.github/workflows/checker.yml index edac3d5..de0112b 100644 --- a/.github/workflows/checker.yml +++ b/.github/workflows/checker.yml @@ -3,7 +3,7 @@ name: 🐱 Checker on: pull_request: branches: - - master + - master jobs: # 确保 PR 中超链接有效性