From 25c7e40ee4cc7751a3e4614651660e267ab8d7bf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 13 Apr 2023 17:29:10 -0400 Subject: [PATCH] Add prettier check to CI, and script. --- .woodpecker.yml | 16 ++++++++++------ format_docs.sh | 3 +++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100755 format_docs.sh diff --git a/.woodpecker.yml b/.woodpecker.yml index 5edc1a9..5ad9c10 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/format_docs.sh b/format_docs.sh new file mode 100755 index 0000000..6cc6432 --- /dev/null +++ b/format_docs.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +prettier -w src