diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index 78ef10f23031..cd0538623681 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -33,8 +33,5 @@ jobs: - uses: actions/checkout@v6 - uses: jdx/mise-action@v3 - run: mise run docs:format-spellcheck-dictionary-check - - run: yarn --immutable - - run: yarn typecheck - - run: yarn spellcheck - - run: yarn format-check + - run: mise run docs:lint - run: yarn build diff --git a/.github/workflows/rpc-parity-report.yml b/.github/workflows/rpc-parity-report.yml index 5bda82c8b8a0..67980a6c68a6 100644 --- a/.github/workflows/rpc-parity-report.yml +++ b/.github/workflows/rpc-parity-report.yml @@ -46,6 +46,7 @@ jobs: df -h - uses: jdx/mise-action@v3 - run: mise add_conformance_report + - run: mise run docs:format # This is needed in order to have the commits signed. - uses: actions/create-github-app-token@v2 id: generate-token diff --git a/mise.toml b/mise.toml index 00cb3a70aba8..77a456a3438e 100644 --- a/mise.toml +++ b/mise.toml @@ -107,7 +107,7 @@ depends = ["lint:deny", "lint:spellcheck", "lint:rust-fmt", "lint:clippy", "lint [tasks."lint:yaml"] description = "Lint YAML files." run = ''' -corepack enable && yarn && yarn install +yarn && yarn install yarn yaml-check ''' @@ -116,12 +116,30 @@ description = "Format all supported code." run = ''' cargo fmt --all taplo fmt -corepack enable && yarn && yarn install +yarn && yarn install yarn md-fmt yarn yaml-fmt ''' alias = "fmt" +[tasks."docs:format"] +description = "Format documentation files." +dir = "docs" +run = ''' +yarn --immutable +yarn format +''' + +[tasks."docs:lint"] +description = "Lint documentation files." +dir = "docs" +run = ''' +yarn --immutable +yarn typecheck +yarn spellcheck +yarn format-check +''' + [tasks.clean] description = "Cleanup all build artifacts and dependencies." run = '''