@@ -47,28 +47,27 @@ jobs:
47
47
48
48
- name : Simulate Failure Scenarios
49
49
if : ${{ matrix.action == 'install' }}
50
- shell : ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
51
50
run : |
52
51
# Fail download step intentionally
53
52
echo "Testing download failure scenario"
54
53
exit 1 # Simulate download failure
54
+ shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
55
55
56
56
- name : Simulate Report Command Failure
57
57
if : ${{ matrix.action == 'report' }}
58
- shell : ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
59
58
run : |
60
59
echo "Testing report command failure"
61
60
~/bin/coveralls report # Simulated failure
61
+ shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
62
62
63
63
- name : Simulate Done Command Failure
64
64
if : ${{ matrix.action == 'done' }}
65
- shell : ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
66
65
run : |
67
66
echo "Testing done command failure"
68
67
~/bin/coveralls done # Simulated failure
68
+ shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
69
69
70
70
- name : Verify Outcome
71
- shell : ${{ startsWith(matrix.os, 'windows') && 'pwsh' || 'bash' }}
72
71
run : |
73
72
if [[ "${{ matrix.fail_on_error }}" == "true" ]]; then
74
73
# Expect failure exit code
86
85
else
87
86
echo "Test succeeded: expected success and action succeeded."
88
87
fi
89
- fi
88
+ shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
89
+
0 commit comments