Add prettier check to CI, and script.

This commit is contained in:
Dessalines 2023-04-13 17:29:10 -04:00
parent fbbd4b07af
commit 25c7e40ee4
2 changed files with 13 additions and 6 deletions

View file

@ -1,10 +1,10 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
submodule_update_remote: true
pipeline:
fetch_git_submodules:
image: alpine/git
commands:
- git submodule init
- git submodule update --recursive --remote
check_documentation_build:
image: rust:1.61-slim-buster
commands:
@ -14,3 +14,7 @@ pipeline:
- apt-get install git curl -y
- ./update-includes.sh
- mdbook build .
check_formatting:
image: alpine:3
commands:
- prettier -c src

3
format_docs.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
prettier -w src