From 030fa1f794997d06b8fe350c34c1406f7a2d438f Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 9 Oct 2025 15:36:20 +0900 Subject: [PATCH] CI: run spell checks for doc-only PRs too Spell checks were skipped for doc-only PRs, as test.yml is ignored for doc-only PRs. Signed-off-by: Akihiro Suda --- .github/workflows/spell.yml | 22 ++++++++++++++++++++++ .github/workflows/test.yml | 12 ------------ 2 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/spell.yml diff --git a/.github/workflows/spell.yml b/.github/workflows/spell.yml new file mode 100644 index 00000000000..0efe7cc01d5 --- /dev/null +++ b/.github/workflows/spell.yml @@ -0,0 +1,22 @@ +# split from test.yml so as to run spell checks for doc-only PRs too +name: spell + +on: + push: + branches: + - master + - 'release/**' + pull_request: + +jobs: + spell: + name: "Spell check" + runs-on: ubuntu-24.04 + timeout-minutes: 5 + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1 + with: + check_filenames: true + check_hidden: true + # by default, codespell uses configuration from the .codespellrc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 960869a73ab..b625dfb1e51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -101,18 +101,6 @@ jobs: steps: - uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4 - spell: - name: "Spell check" - runs-on: ubuntu-24.04 - timeout-minutes: 5 - steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1 - with: - check_filenames: true - check_hidden: true - # by default, codespell uses configuration from the .codespellrc - unit: name: "Unit tests" runs-on: ubuntu-24.04