Skip to content

Commit 720879c

Browse files
committed
Tweak syntax in response to error.
1 parent 2a6ece6 commit 720879c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: .github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,27 @@ jobs:
4747

4848
- name: Simulate Failure Scenarios
4949
if: ${{ matrix.action == 'install' }}
50-
shell: ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
5150
run: |
5251
# Fail download step intentionally
5352
echo "Testing download failure scenario"
5453
exit 1 # Simulate download failure
54+
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
5555

5656
- name: Simulate Report Command Failure
5757
if: ${{ matrix.action == 'report' }}
58-
shell: ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
5958
run: |
6059
echo "Testing report command failure"
6160
~/bin/coveralls report # Simulated failure
61+
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
6262

6363
- name: Simulate Done Command Failure
6464
if: ${{ matrix.action == 'done' }}
65-
shell: ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
6665
run: |
6766
echo "Testing done command failure"
6867
~/bin/coveralls done # Simulated failure
68+
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
6969

7070
- name: Verify Outcome
71-
shell: ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
7271
run: |
7372
if [[ "${{ matrix.fail_on_error }}" == "true" ]]; then
7473
# Expect failure exit code
@@ -86,4 +85,5 @@ jobs:
8685
else
8786
echo "Test succeeded: expected success and action succeeded."
8887
fi
89-
fi
88+
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
89+

0 commit comments

Comments
 (0)