Skip to content

Commit 5d305fc

Browse files
committed
CI: add a job for validating sh, MD, and YAML
1 parent 4258c1c commit 5d305fc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.circleci/config.yml

+19
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ workflows:
1818
- contract_reflect
1919
- contract_staking
2020
- fmt
21+
- fmt_extra
2122
- clippy
2223
- benchmarking:
2324
requires:
@@ -675,6 +676,24 @@ jobs:
675676
- target/debug/deps
676677
key: cargocache-v2-fmt-rust:1.51.0-{{ checksum "Cargo.lock" }}
677678

679+
fmt_extra:
680+
docker:
681+
- image: node:16.3.0-buster
682+
steps:
683+
- checkout
684+
- run:
685+
name: Install shfmt
686+
command: curl -sS https://webinstall.dev/shfmt | bash
687+
- run:
688+
name: Validate Markdown files
689+
command: devtools/format_md.sh -c
690+
- run:
691+
name: Validate shell scripts
692+
command: PATH="/root/.local/bin:$PATH" devtools/format_sh.sh -c
693+
- run:
694+
name: Validate YAML files
695+
command: devtools/format_yml.sh -c
696+
678697
clippy:
679698
docker:
680699
# In this job we use the latest Rust stable in order to check against the

0 commit comments

Comments
 (0)