From 8a8c8eb2e4c6fa28a5c17a5bf48afc86bd702909 Mon Sep 17 00:00:00 2001 From: Fodesu Date: Fri, 13 Feb 2026 22:01:01 +0800 Subject: [PATCH] ci: add typos ci support --- .github/workflows/typos.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/typos.yml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 00000000..c38c3b0a --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,30 @@ +name: Spell Check + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + typos: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Check for typos + uses: crate-ci/typos@1.43.4 + - name: Typos info + if: failure() + run: | + echo 'To fix typos, please run `typos -w`' + echo 'To check for a diff, run `typos`' + echo 'You can find typos here: https://crates.io/crates/typos' + echo 'if you use VSCode, you can also install `Typos Spell Checker`' + echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode'