File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -38,29 +38,22 @@ jobs:
3838 timeout-minutes : 20
3939 needs : [set-image]
4040 container :
41- image : ${{ needs.preflight .outputs.IMAGE }}
41+ image : ${{ needs.set-image .outputs.CI_IMAGE }}
4242 steps :
4343 - uses : actions/checkout@v4
44+
4445 - name : Cargo fmt
45- id : required
4646 run : |
4747 rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
4848 cargo +nightly fmt --all -- --check
4949
50- check-toml-format :
51- runs-on : ubuntu-latest
52- timeout-minutes : 20
53- needs : [check-fmt]
54- container :
55- image : ${{ needs.preflight.outputs.IMAGE }}
56- steps :
57- - uses : actions/checkout@v4
58- - name : check toml format
50+ - name : Check TOML format
5951 run : |
60- rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
6152 cargo install taplo-cli
62- taplo format --check --config .config/taplo.toml
63- echo "Please run `taplo format --config .config/taplo.toml` to fix any toml formatting issues"
53+ if ! taplo format --check --config .config/taplo.toml; then
54+ echo "Please run 'taplo format --config .config/taplo.toml' to fix any TOML formatting issues"
55+ exit 1
56+ fi
6457
6558 check :
6659 name : Cargo check
You can’t perform that action at this time.
0 commit comments