From c04119adf11470972c0c59f04aa1ed51219ed478 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Fri, 4 Oct 2024 11:30:45 -0400 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a9d9111c..fbc1f4134 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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