mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
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:
1 parent
da87026797
commit
c04119adf1
1 file changed
+9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user