@@ -104,7 +104,7 @@ jobs:
104
104
- name : Test command failure handling
105
105
if : matrix.test == 'command-failure'
106
106
uses : ./
107
- continue-on-error : true
107
+ continue-on-error : false
108
108
with :
109
109
commands : " npm run nonexistent-script"
110
110
dir : .
@@ -114,7 +114,7 @@ jobs:
114
114
- name : Test missing directory
115
115
if : matrix.test == 'missing-directory'
116
116
uses : ./
117
- continue-on-error : true
117
+ continue-on-error : false
118
118
with :
119
119
commands : " echo 'test'"
120
120
dir : " nonexistent-directory"
@@ -124,7 +124,7 @@ jobs:
124
124
- name : Test missing package.json
125
125
if : matrix.test == 'missing-package-json'
126
126
uses : ./
127
- continue-on-error : true
127
+ continue-on-error : false
128
128
with :
129
129
commands : " echo 'test'"
130
130
dir : " .github"
@@ -171,11 +171,11 @@ jobs:
171
171
test : [invalid-node-version, invalid-cache, invalid-dir, invalid-sonar-token, invalid-repository]
172
172
steps :
173
173
- uses : actions/checkout@v5
174
-
174
+
175
175
- name : Test invalid node_version pattern
176
176
if : matrix.test == 'invalid-node-version'
177
177
uses : ./
178
- continue-on-error : true
178
+ continue-on-error : false
179
179
with :
180
180
commands : " echo 'test'"
181
181
dir : " ."
@@ -185,7 +185,7 @@ jobs:
185
185
- name : Test invalid cache pattern
186
186
if : matrix.test == 'invalid-cache'
187
187
uses : ./
188
- continue-on-error : true
188
+ continue-on-error : false
189
189
with :
190
190
commands : " echo 'test'"
191
191
dir : " ."
@@ -196,7 +196,7 @@ jobs:
196
196
- name : Test invalid dir pattern
197
197
if : matrix.test == 'invalid-dir'
198
198
uses : ./
199
- continue-on-error : true
199
+ continue-on-error : false
200
200
with :
201
201
commands : " echo 'test'"
202
202
dir : " invalid dir with spaces"
@@ -206,7 +206,7 @@ jobs:
206
206
- name : Test invalid sonar_token pattern
207
207
if : matrix.test == 'invalid-sonar-token'
208
208
uses : ./
209
- continue-on-error : true
209
+ continue-on-error : false
210
210
with :
211
211
commands : " echo 'test'"
212
212
dir : " ."
@@ -217,7 +217,7 @@ jobs:
217
217
- name : Test invalid repository pattern
218
218
if : matrix.test == 'invalid-repository'
219
219
uses : ./
220
- continue-on-error : true
220
+ continue-on-error : false
221
221
with :
222
222
commands : " echo 'test'"
223
223
dir : " ."
@@ -230,7 +230,7 @@ jobs:
230
230
echo "🔍 Testing pattern validation for: ${{ matrix.test }}"
231
231
echo "Expected: Should fail due to invalid pattern"
232
232
echo "Actual outcome: ${{ steps[format('test-{0}', matrix.test)].outcome }}"
233
-
233
+
234
234
case "${{ matrix.test }}" in
235
235
"invalid-node-version")
236
236
if [ "${{ steps.test-invalid-node-version.outcome }}" == "success" ]; then
@@ -278,5 +278,5 @@ jobs:
278
278
fi
279
279
;;
280
280
esac
281
-
281
+
282
282
echo "🎉 Pattern validation test '${{ matrix.test }}' completed!"
0 commit comments