Updated README.md file #30
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: 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 |