Skip to content

Commit

Permalink
impl script in chrome step
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Jan 30, 2024
1 parent 6b54328 commit c5c14d2
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,20 +224,7 @@ jobs:
shell: bash
run: |
/usr/bin/google-chrome --headless --virtual-time-budget=120000 --dump-dom http://localhost:8080 > chrome-results.html
# Handle tests results
if grep -q 'title="FAILED"' chrome-results.html; then
failed_info=$(grep -oE '<div id="[^"]+" title="FAILED">([^<]+)' chrome-results.html | awk 'NR==1 {print substr($0, index($0,$4))}')
echo $failed_info
exit 1
elif grep -q 'title="OK"' chrome-results.html; then
grep -oE '<div id="[^"]+" title="OK">([^<]+)' chrome-results.html | awk '{print substr($0, index($0,$4))}'
echo "Success: all tests passed."
else
cat chrome-results.html
echo "No test results found. Check chrome-results.html output."
exit 1
fi
./analyze-headless-tests-results.sh chrome-results.html
- name: Run Firefox headless
working-directory: mithril-client-wasm
Expand Down

0 comments on commit c5c14d2

Please sign in to comment.