Skip to content

docs: add Go badge to language navigation header; add #readme anchor … #18

docs: add Go badge to language navigation header; add #readme anchor …

docs: add Go badge to language navigation header; add #readme anchor … #18

name: Selenium Integration Tests
on:
push:
branches:
- '**'
pull_request:
jobs:
selenium-integration-tests:
name: Selenium Integration Tests (Java 25)
runs-on: ubuntu-latest
env:
DBC_USERNAME: ${{ secrets.DBC_USERNAME }}
DBC_PASSWORD: ${{ secrets.DBC_PASSWORD }}
DBC_AUTHTOKEN: ${{ secrets.DBC_AUTHTOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java 25
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 25
cache: maven
- name: Browser diagnostics
run: |
command -v google-chrome || command -v google-chrome-stable || command -v chromium-browser || command -v chromium || true
command -v chromedriver || true
(google-chrome --version || google-chrome-stable --version || chromium-browser --version || chromium --version || true)
(chromedriver --version || true)
- name: Run Selenium integration test
run: |
CHROME_BIN="$(command -v google-chrome || command -v google-chrome-stable || command -v chromium-browser || command -v chromium || true)"
if [ -n "$CHROME_BIN" ]; then
export CHROME_BIN
echo "Using CHROME_BIN=$CHROME_BIN"
fi
mvn --batch-mode --errors --fail-at-end --show-version -Djava.release=25 -Dtest=OnlineSeleniumRecaptchaIntegrationTest test
- name: Print Surefire reports on failure
if: failure()
run: |
echo "==== surefire text reports ===="
find target/surefire-reports -name "*.txt" -maxdepth 1 -print -exec cat {} \;
echo "==== surefire xml reports ===="
find target/surefire-reports -name "*.xml" -maxdepth 1 -print -exec sed -n '1,220p' {} \;
- name: Upload Selenium integration test results
if: always()
uses: actions/upload-artifact@v4
with:
name: selenium-integration-test-results
path: target/surefire-reports/