DemoQA Selenium ubuntu-latest #4671
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DemoQA Selenium ubuntu-latest | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 6,8,10,12,14,16,18,20,22 * * *' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4.0.0 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Install Google Chrome # Using shell script to install Google Chrome | |
run: | | |
chmod +x ./scripts/InstallChrome.sh | |
./scripts/InstallChrome.sh | |
- name: Maven Verify | |
run: mvn -B clean test | |
- name: Deploy | |
if: success() || failure() | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
publish_dir: ./ExtentReports |