Skip to content

Commit e5d5d50

Browse files
ci: Install yamlfmt so that yaml formatting can be checked
1 parent da55df6 commit e5d5d50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ jobs:
8888
- name: Checkout sources
8989
uses: actions/checkout@v4
9090
- uses: Swatinem/rust-cache@v2
91+
- name: Install yamlfmt
92+
env:
93+
YFV: "0.13.0"
94+
HASH: "043e96d754a8afa4f4c5c13ffb2f3e50c6be5a70bf53292d3025abc0b42fe4ae"
95+
run: |
96+
curl -L --fail --output /tmp/yamlfmt.tar.xz https://github.com/google/yamlfmt/releases/download/v${YFV}/yamlfmt_${YFV}_Linux_x86_64.tar.gz
97+
echo "${HASH} /tmp/yamlfmt.tar.xz" | sha256sum --check
98+
tar xf /tmp/yamlfmt.tar.xz -C /usr/local/bin yamlfmt
9199
- name: Check formatting
92100
run: cargo xtask fmt --check
93101
- name: Run clippy

0 commit comments

Comments
 (0)