From 616ec530a8806528ab18a931b155f201ca946391 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 30 Aug 2022 18:15:54 +0100 Subject: [PATCH] .github: workflows: Fail on intermediate steps for commit checks Signed-off-by: Rob Bradford --- .github/workflows/quality.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 6f949b8b6..d4752ce24 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -35,7 +35,9 @@ jobs: - name: Debug Check (default features) run: | - git rev-list origin/${{ github.base_ref }}..${{ github.sha }} | xargs -t -I % sh -c 'git checkout %; cargo check --tests --all --target=${{ matrix.target }}' + set -e + commits=$(git rev-list origin/${{ github.base_ref }}..${{ github.sha }}) + for commit in $commits; do git checkout $commit; cargo check --tests --all --target=${{ matrix.target }}; done git checkout ${{ github.sha }} - name: Formatting (rustfmt)