From 3bd703584a163417897c837f513d0a14b295ec47 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 28 Jun 2022 21:13:18 -0400 Subject: [PATCH 1/3] chore: update test --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2a49135c1f..47be84a9d08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -141,6 +141,12 @@ jobs: echo "${{ toJSON(steps.changed-files.outputs) }}" shell: bash + + - name: Exit with 1 if no error is raised + if: steps.changed-files.outcome != "failure" + run: | + echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" + exit 1 - name: Run changed-files-specific with non existent base sha id: changed-files-specific @@ -155,6 +161,12 @@ jobs: echo "${{ toJSON(steps.changed-files-specific.outputs) }}" shell: bash + + - name: Exit with 1 if no error is raised + if: steps.changed-files.outcome != "failure" + run: | + echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" + exit 1 test-non-existent-sha: name: Test changed-files non existent sha @@ -181,6 +193,12 @@ jobs: echo "${{ toJSON(steps.changed-files.outputs) }}" shell: bash + + - name: Exit with 1 if no error is raised + if: steps.changed-files.outcome != "failure" + run: | + echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" + exit 1 - name: Run changed-files-specific with non existent sha id: changed-files-specific @@ -195,6 +213,12 @@ jobs: echo "${{ toJSON(steps.changed-files-specific.outputs) }}" shell: bash + + - name: Exit with 1 if no error is raised + if: steps.changed-files.outcome != "failure" + run: | + echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" + exit 1 test: name: Test changed-files From c6a00265ed1c13259604b9a2286450d37102156e Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 28 Jun 2022 21:14:24 -0400 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47be84a9d08..fbc4338314c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -165,7 +165,7 @@ jobs: - name: Exit with 1 if no error is raised if: steps.changed-files.outcome != "failure" run: | - echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" + echo "Expected: (failure) got ${{ steps.changed-files-specific.outcome }}" exit 1 test-non-existent-sha: @@ -217,7 +217,7 @@ jobs: - name: Exit with 1 if no error is raised if: steps.changed-files.outcome != "failure" run: | - echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" + echo "Expected: (failure) got ${{ steps.changed-files-specific.outcome }}" exit 1 test: From afc99d0b81514b198fc1547b46ed383d7744dcd3 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 28 Jun 2022 21:20:18 -0400 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fbc4338314c..a250a675017 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -143,7 +143,7 @@ jobs: bash - name: Exit with 1 if no error is raised - if: steps.changed-files.outcome != "failure" + if: steps.changed-files.outcome != 'failure' run: | echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" exit 1 @@ -163,7 +163,7 @@ jobs: bash - name: Exit with 1 if no error is raised - if: steps.changed-files.outcome != "failure" + if: steps.changed-files-specific.outcome != 'failure' run: | echo "Expected: (failure) got ${{ steps.changed-files-specific.outcome }}" exit 1 @@ -195,7 +195,7 @@ jobs: bash - name: Exit with 1 if no error is raised - if: steps.changed-files.outcome != "failure" + if: steps.changed-files.outcome != 'failure' run: | echo "Expected: (failure) got ${{ steps.changed-files.outcome }}" exit 1 @@ -215,7 +215,7 @@ jobs: bash - name: Exit with 1 if no error is raised - if: steps.changed-files.outcome != "failure" + if: steps.changed-files-specific.outcome != 'failure' run: | echo "Expected: (failure) got ${{ steps.changed-files-specific.outcome }}" exit 1