From 54abb11129477083d6de210820b4fb4f11f9e19f Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Mon, 16 Jun 2025 03:41:38 +0400 Subject: [PATCH] build: run spellcheck on build --- .github/workflows/release.yml | 5 +++++ .github/workflows/rolling-release.yml | 5 +++++ .github/workflows/spellcheck.yml | 26 ++++++++++++++++++++++++++ .vscode/settings.json | 1 + 4 files changed, 37 insertions(+) create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 277a145..af152f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,11 @@ jobs: uses: ./.github/workflows/codeql.yml secrets: inherit + spellcheck: + name: Spell Check + uses: ./.github/workflows/spellcheck.yml + secrets: inherit + release: needs: [security-scan, lint-js, lint-rust] permissions: diff --git a/.github/workflows/rolling-release.yml b/.github/workflows/rolling-release.yml index 83cabe1..07908ce 100644 --- a/.github/workflows/rolling-release.yml +++ b/.github/workflows/rolling-release.yml @@ -41,6 +41,11 @@ jobs: uses: ./.github/workflows/codeql.yml secrets: inherit + spellcheck: + name: Spell Check + uses: ./.github/workflows/spellcheck.yml + secrets: inherit + rolling-release: needs: [security-scan, lint-js, lint-rust] permissions: diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..4b11d0e --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,26 @@ +name: Spell Check + +permissions: + contents: read + +on: + workflow_call: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + CLICOLOR: 1 + +jobs: + spelling: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 + - name: Spell Check Repo + uses: crate-ci/typos@v1.33.1 diff --git a/.vscode/settings.json b/.vscode/settings.json index 0d77a24..1dc451a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,7 @@ "cdylib", "CFURL", "checkin", + "CLICOLOR", "clippy", "cmdk", "codegen",