Skip to content

Commit 901213e

Browse files
committed
Revert "CI: don't rerun failed testsuites"
This reverts commit 729af31.
1 parent 688b0d5 commit 901213e

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ jobs:
118118

119119
- if: matrix.test
120120
name: Test hls-plugin-api
121-
run: cabal test hls-plugin-api --test-options="$TEST_OPTS"
121+
run: cabal test hls-plugin-api --test-options="$TEST_OPTS" || cabal test hls-plugin-api --test-options="$TEST_OPTS"
122122

123123
- if: matrix.test
124124
name: Test func-test suite
125125
env:
126126
HLS_TEST_EXE: hls
127127
HLS_WRAPPER_TEST_EXE: hls-wrapper
128-
run: cabal test func-test --test-options="$TEST_OPTS"
128+
run: cabal test func-test --test-options="$TEST_OPTS" || cabal test func-test --test-options="$TEST_OPTS"
129129

130130
- if: matrix.test
131131
name: Test wrapper-test suite
@@ -136,116 +136,116 @@ jobs:
136136

137137
- if: matrix.test
138138
name: Test hls-refactor-plugin
139-
run: cabal test hls-refactor-plugin --test-options="$TEST_OPTS"
139+
run: cabal test hls-refactor-plugin --test-options="$TEST_OPTS" || cabal test hls-refactor-plugin --test-options="$TEST_OPTS"
140140

141141
- if: matrix.test && matrix.ghc != '9.6.1'
142142
name: Test hls-floskell-plugin
143-
run: cabal test hls-floskell-plugin --test-options="$TEST_OPTS"
143+
run: cabal test hls-floskell-plugin --test-options="$TEST_OPTS" || cabal test hls-floskell-plugin --test-options="$TEST_OPTS"
144144

145145
- if: matrix.test
146146
name: Test hls-class-plugin
147-
run: cabal test hls-class-plugin --test-options="$TEST_OPTS"
147+
run: cabal test hls-class-plugin --test-options="$TEST_OPTS" || cabal test hls-class-plugin --test-options="$TEST_OPTS"
148148

149149
- if: matrix.test
150150
name: Test hls-pragmas-plugin
151-
run: cabal test hls-pragmas-plugin --test-options="$TEST_OPTS"
151+
run: cabal test hls-pragmas-plugin --test-options="$TEST_OPTS" || cabal test hls-pragmas-plugin --test-options="$TEST_OPTS"
152152

153153
- if: matrix.test
154154
name: Test hls-eval-plugin
155-
run: cabal test hls-eval-plugin --test-options="$TEST_OPTS"
155+
run: cabal test hls-eval-plugin --test-options="$TEST_OPTS" || cabal test hls-eval-plugin --test-options="$TEST_OPTS"
156156

157157
- if: matrix.test && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.4' && matrix.ghc != '9.6.1'
158158
name: Test hls-haddock-comments-plugin
159-
run: cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS"
159+
run: cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS" || cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS"
160160

161161
- if: matrix.test
162162
name: Test hls-splice-plugin
163-
run: cabal test hls-splice-plugin --test-options="$TEST_OPTS"
163+
run: cabal test hls-splice-plugin --test-options="$TEST_OPTS" || cabal test hls-splice-plugin --test-options="$TEST_OPTS"
164164

165165
- if: matrix.test && matrix.ghc != '9.6.1'
166166
name: Test hls-stylish-haskell-plugin
167-
run: cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
167+
run: cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
168168

169169
- if: matrix.test && matrix.ghc != '9.6.1'
170170
name: Test hls-ormolu-plugin
171-
run: cabal test hls-ormolu-plugin --test-options="$TEST_OPTS"
171+
run: cabal test hls-ormolu-plugin --test-options="$TEST_OPTS" || cabal test hls-ormolu-plugin --test-options="$TEST_OPTS"
172172

173173
- if: matrix.test && matrix.ghc != '9.6.1'
174174
name: Test hls-fourmolu-plugin
175-
run: cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS"
175+
run: cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS" || cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS"
176176

177177
- if: matrix.test && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.4' && matrix.ghc != '9.6.1'
178178
name: Test hls-tactics-plugin test suite
179-
run: cabal test hls-tactics-plugin --test-options="$TEST_OPTS"
179+
run: cabal test hls-tactics-plugin --test-options="$TEST_OPTS" || cabal test hls-tactics-plugin --test-options="$TEST_OPTS"
180180

181181
- if: matrix.test
182182
name: Test hls-refine-imports-plugin test suite
183-
run: cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS"
183+
run: cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS" || cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS"
184184

185185
- if: matrix.test
186186
name: Test hls-explicit-imports-plugin test suite
187-
run: cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS"
187+
run: cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS" || cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS"
188188

189189
- if: matrix.test
190190
name: Test hls-call-hierarchy-plugin test suite
191-
run: cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS"
191+
run: cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS" || cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS"
192192

193193
- if: matrix.test && matrix.os != 'windows-latest'
194194
name: Test hls-rename-plugin test suite
195-
run: cabal test hls-rename-plugin --test-options="$TEST_OPTS"
195+
run: cabal test hls-rename-plugin --test-options="$TEST_OPTS" || cabal test hls-rename-plugin --test-options="$TEST_OPTS"
196196

197197
- if: matrix.test && matrix.ghc != '9.6.1'
198198
name: Test hls-hlint-plugin test suite
199-
run: cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
199+
run: cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
200200

201201
- if: matrix.test && matrix.ghc != '9.0.2' && matrix.ghc != '9.2.5' && matrix.ghc != '9.4.4' && matrix.ghc != '9.6.1'
202202
name: Test hls-stan-plugin test suite
203-
run: cabal test hls-stan-plugin --test-options="$TEST_OPTS"
203+
run: cabal test hls-stan-plugin --test-options="$TEST_OPTS" || cabal test hls-stan-plugin --test-options="$TEST_OPTS"
204204

205205
- if: matrix.test
206206
name: Test hls-module-name-plugin test suite
207-
run: cabal test hls-module-name-plugin --test-options="$TEST_OPTS"
207+
run: cabal test hls-module-name-plugin --test-options="$TEST_OPTS" || cabal test hls-module-name-plugin --test-options="$TEST_OPTS"
208208

209209
- if: matrix.test
210210
name: Test hls-alternate-number-format-plugin test suite
211-
run: cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS"
211+
run: cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS" || cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS"
212212

213213
- if: matrix.test
214214
name: Test hls-qualify-imported-names-plugin test suite
215-
run: cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS"
215+
run: cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS" || cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS"
216216

217217
- if: matrix.test
218218
name: Test hls-code-range-plugin test suite
219-
run: cabal test hls-code-range-plugin --test-options="$TEST_OPTS"
219+
run: cabal test hls-code-range-plugin --test-options="$TEST_OPTS" || cabal test hls-code-range-plugin --test-options="$TEST_OPTS"
220220

221221
- if: matrix.test
222222
name: Test hls-change-type-signature test suite
223-
run: cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS"
223+
run: cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS" || cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS"
224224

225225
- if: matrix.test
226226
name: Test hls-gadt-plugin test suit
227-
run: cabal test hls-gadt-plugin --test-options="$TEST_OPTS"
227+
run: cabal test hls-gadt-plugin --test-options="$TEST_OPTS" || cabal test hls-gadt-plugin --test-options="$TEST_OPTS"
228228

229229
- if: matrix.test
230230
name: Test hls-explicit-fixity-plugin test suite
231-
run: cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS"
231+
run: cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS" || cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS"
232232

233233
- if: matrix.test
234234
name: Test hls-explicit-record-fields-plugin test suite
235-
run: cabal test hls-explicit-record-fields-plugin --test-options="$TEST_OPTS"
235+
run: cabal test hls-explicit-record-fields-plugin --test-options="$TEST_OPTS" || cabal test hls-explicit-record-fields-plugin --test-options="$TEST_OPTS"
236236

237237
## version needs to be limited since the tests depend on cabal-fmt which only builds using specific ghc versions
238238
- if: matrix.test && matrix.ghc == '8.10.7'
239239
name: Test hls-cabal-fmt-plugin test suite
240-
run: cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS"
240+
run: cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS" || cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS"
241241

242242
- if: matrix.test
243243
name: Test hls-cabal-plugin test suite
244-
run: cabal test hls-cabal-plugin --test-options="$TEST_OPTS"
244+
run: cabal test hls-cabal-plugin --test-options="$TEST_OPTS" || cabal test hls-cabal-plugin --test-options="$TEST_OPTS"
245245

246246
- if: matrix.test
247247
name: Test hls-retrie-plugin test suite
248-
run: cabal test hls-retrie-plugin --test-options="$TEST_OPTS"
248+
run: cabal test hls-retrie-plugin --test-options="$TEST_OPTS" || cabal test hls-retrie-plugin --test-options="$TEST_OPTS"
249249

250250
test_post_job:
251251
if: always()

0 commit comments

Comments
 (0)