Skip to content

Commit 88a99f2

Browse files
committed
split up into smaller steps
1 parent 51b7209 commit 88a99f2

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,19 @@ jobs:
5555
uses: ./
5656
with:
5757
environment-paths: "${{ toJSON(matrix.env-paths) }}"
58-
- name: evaluate failures
58+
- name: detect unexpected failures
5959
if: |
60-
(
61-
(failure() && ${{ matrix.expected-failure }} != "true")
62-
|| (success() && ${{ matrix.expected-failure }} != "false")
63-
)
60+
failure() && ${{ matrix.expected-failure }} == "false"
6461
shell: bash -l {0}
65-
run: exit 1
62+
run: |
63+
echo "STATUS=1" >> $GITHUB_ENV
64+
- name: detect unexpected passes
65+
if: |
66+
success() && ${{ matrix.expected-failure }} == "true"
67+
shell: bash -l {0}
68+
run: |
69+
echo "STATUS=0" >> $GITHUB_ENV
70+
- name: evaluate status
71+
shell: bash -l {0}
72+
run: |
73+
exit ${{ env.STATUS }}

0 commit comments

Comments
 (0)