From caeed23293add97a269b6d937c788b8622a882f1 Mon Sep 17 00:00:00 2001 From: Antonius Naumann Date: Sat, 7 Sep 2024 21:34:01 +0200 Subject: [PATCH] ci: Set pipefail to avoid swallowing error codes --- .github/workflows/ci.yml | 2 +- .github/workflows/clippy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68645cf..1bac267 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: olix0r/cargo-action-fmt/setup@v2 - name: Check - run: cargo check -q --message-format=json | cargo-action-fmt + run: set -o pipefail && cargo check -q --message-format=json | cargo-action-fmt - name: Build run: cargo build - name: Test diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 60812fc..65fd851 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -16,4 +16,4 @@ jobs: - uses: actions/checkout@v4 - uses: olix0r/cargo-action-fmt/setup@v2 - name: Clippy - run: cargo clippy -q -- -D warnings --message-format=json | cargo-action-fmt + run: set -o pipefail && cargo clippy -q -- -D warnings --message-format=json | cargo-action-fmt