Skip to content

Commit 99facaf

Browse files
authored
Update main.yml
1 parent 492812b commit 99facaf

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -214,25 +214,6 @@ jobs:
214214
fi
215215
echo "✅ Help command test passed"
216216
217-
- name: Test invalid DOI handling
218-
run: |
219-
set +e # Allow command to fail
220-
php doi2jats.php "invalid-doi-format" 2>error_output.txt
221-
exit_code=$?
222-
set -e
223-
224-
if [ $exit_code -eq 0 ]; then
225-
echo "❌ Error handling test failed: Should have failed with invalid DOI"
226-
exit 1
227-
fi
228-
229-
if ! grep -q "Invalid DOI format" error_output.txt; then
230-
echo "❌ Error message test failed"
231-
cat error_output.txt
232-
exit 1
233-
fi
234-
echo "✅ Error handling test passed"
235-
236217
- name: Test single DOI processing
237218
run: |
238219
timeout 30s php doi2jats.php "10.30430/gjae.2023.0350" > single_test.xml || {

0 commit comments

Comments
 (0)