mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-27 14:51:09 +00:00
Add prettier check to CI, and script.
This commit is contained in:
parent
fbbd4b07af
commit
25c7e40ee4
2 changed files with 13 additions and 6 deletions
|
@ -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
3
format_docs.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
prettier -w src
|
Loading…
Reference in a new issue