test(ci): enforce fmt. of *.{md,js,html,yml} with prettier 3.8.1

This actually may enforce the format of other files than these, but we
don't use them, so far as I'm aware. If we want to opt out of other
formats later, that's what `.prettierignore` is for.
This commit is contained in:
Erich Gubler committed 2026-03-25 12:46:54 -06:00
1 parent da87026797
commit c04119adf1
1 file changed
+9
+9
View File
@@ -797,6 +797,15 @@ jobs:
rustup override set ${{ env.REPO_MSRV }}
cargo -V
# NOTE: Keep this above the others, because this will fail if there are _any_ changes to
# files, even ones this step doesn't modify.
- name: "Format `**/*.{md,js,html,yml}` files"
uses: creyD/prettier_action@v4.6
with:
prettier_version: 3.8.1
prettier_options: --check --write .
dry: true
- name: Run `cargo fmt`
run: |
cargo --locked fmt -- --check