Skip to content

ci: run docs-fix via Docker and track its Node version with Dependabot#68

Merged
lucaaamaral merged 1 commit into
magma:mainfrom
lucaaamaral:chore/dockerize-docs-fix
Jun 15, 2026
Merged

ci: run docs-fix via Docker and track its Node version with Dependabot#68
lucaaamaral merged 1 commit into
magma:mainfrom
lucaaamaral:chore/dockerize-docs-fix

Conversation

@lucaaamaral

Copy link
Copy Markdown
Collaborator

What

Make the docs-fix workflow fully Docker-based and put its Node version under Dependabot.

  • docs-fix.yml: drop the runner-native setup-node@18, setup-python, and yarn install steps. They were redundant (the fix already runs markdownlint inside readmes/Dockerfile) and broken (yarn install ran at the repo root, which has no package.json). The job is now: checkout -> make -C readmes precommit_fix (Dockerized) -> capture/upload the patch.
  • readmes/Dockerfile: node:20.16 -> node:26-slim, aligning with the docusaurus image.
  • dependabot.yml: add a docker entry for /readmes so the markdownlint image Node version is bumped automatically.

Why

A node-version: workflow input is not updated by Dependabot (it tracks uses: tags and Dockerfile FROM, not action inputs) — which is why it sat at 18. Pinning Node in a Dockerfile and tracking that directory keeps it maintainable.

Validation

Built readmes/Dockerfile on node:26-slim; markdownlint --version -> 0.48.0 (tooling works on Node 26).

- docs-fix.yml: drop runner-native setup-node@18 / setup-python / 'yarn install'
  (redundant + broken: precommit_fix already runs markdownlint in a container, and
  there is no root package.json). Now: checkout -> make -C readmes precommit_fix ->
  capture/upload patch.
- readmes/Dockerfile: node:20.16 -> node:26-slim (aligns with the docusaurus image)
- dependabot.yml: track /readmes (docker) so the markdownlint image's Node version
  is bumped automatically instead of rotting in a workflow input.
@lucaaamaral lucaaamaral merged commit 5dcb2bf into magma:main Jun 15, 2026
5 of 7 checks passed
@lucaaamaral lucaaamaral deleted the chore/dockerize-docs-fix branch June 15, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant