From 00a6446b5d4e9e3ac1592625b2ab209a0354462e Mon Sep 17 00:00:00 2001 From: chvmvd Date: Mon, 10 Oct 2022 11:29:57 +0900 Subject: [PATCH 1/2] =?UTF-8?q?typos=E3=81=AE=E5=B0=8E=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 2 ++ README.md | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc60..7a6c2882b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" npx lint-staged + +typos docs diff --git a/README.md b/README.md index 5c755765a..8cff119d6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,14 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern sta npm ci ``` +```shell +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +``` + +``` +cargo install typos-cli +``` + ### Local Development ```shell From a8989e9f086425142a72a8f7a1b5f3dc6bb32439 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Mon, 10 Oct 2022 12:05:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?TypoCI=E3=81=AE=E5=B0=8E=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/spellcheck.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 000000000..96fc61088 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,18 @@ +name: Typo CI + +on: + pull_request: + push: + branches: + - main +jobs: + spellcheck: + name: Typo CI (GitHub Action) + runs-on: ubuntu-latest + timeout-minutes: 4 + if: "!contains(github.event.head_commit.message, '[ci skip]')" + steps: + - name: TypoCheck + uses: typoci/spellcheck-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}