From ab320a695c84a2014370343833a90fef90289db9 Mon Sep 17 00:00:00 2001 From: Apisit Ritreungroj <38898766+apskhem@users.noreply.github.com> Date: Thu, 7 Dec 2023 15:32:00 +0700 Subject: [PATCH] fix: modify the spellcheck from local to call spellcheck in `catalyst-ci` (#177) * feat: spellcheck ci * feat: spell-check doc comment * fix: spell-check comment * chore: remove local spellcheck from workflow and earthfile --- .github/workflows/spell-check.yml | 14 -------------- .vscode/tasks.recommended.json | 4 ++-- Earthfile | 9 +++++---- 3 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/spell-check.yml diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml deleted file mode 100644 index 97bb1952fbb..00000000000 --- a/.github/workflows/spell-check.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Spell Check - -on: - pull_request: - types: - - opened - - edited - - synchronize - - reopened - -jobs: - build: - name: Check spelling across all files - uses: input-output-hk/catalyst-ci/.github/workflows/spell-check.yml@v2.0.6 diff --git a/.vscode/tasks.recommended.json b/.vscode/tasks.recommended.json index 997095658f1..8d8ddc315c7 100644 --- a/.vscode/tasks.recommended.json +++ b/.vscode/tasks.recommended.json @@ -40,9 +40,9 @@ { "label": "CI - Recursive Spell Check", "type": "shell", - "command": "earthly -P +spell-check", + "command": "earthly -P +check-spelling", "problemMatcher": { - "owner": "spell-check", + "owner": "check-spelling", "pattern": { "regexp": "([\\S+]+):(\\d+):(\\d+)\\s-\\s(.+)", "file": 1, diff --git a/Earthfile b/Earthfile index 8f3a1b382be..83d19faf6b2 100644 --- a/Earthfile +++ b/Earthfile @@ -17,11 +17,12 @@ markdown-check-fix: DO github.com/input-output-hk/catalyst-ci/earthly/mdlint:v2.0.9+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix -spell-check: - # Check spelling in this repo. - LOCALLY +# check-spelling Check spelling in this repo inside a container. +check-spelling: + DO github.com/input-output-hk/catalyst-ci/earthly/cspell:v2.0.10+CHECK - DO github.com/input-output-hk/catalyst-ci/earthly/cspell:v2.0.9+CSPELL_LOCALLY --src=$(echo ${PWD}) +check: + BUILD +check-spelling repo-docs: # Create artifacts of extra files we embed inside the documentation when its built.