Skip to content

Merge pull request #9 from avdhutssh/feat/readme #27

Merge pull request #9 from avdhutssh/feat/readme

Merge pull request #9 from avdhutssh/feat/readme #27

Workflow file for this run

name: Selenium Tests on Windows
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Selenium-Test:
runs-on: windows-latest
env:
browserName: chrome
isHeadless: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Java and Maven
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- name: Install Maven
run: choco install maven
- name: Set up ChromeDriver
run: choco install chromedriver
- name: Run tests with Maven
run: mvn clean test
- name: Upload Extent Report as artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: ExtentReport
path: Reports/extentReport.html