Update maven.yml #56
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: Run Selenium Tests with Allure Reports | |
on: | |
push: | |
branches: | |
- main | |
pull_request: null | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 20 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "20" | |
distribution: temurin | |
- name: Cache Maven dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('** | |
/cucumber-archetype-parallel-advance/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Execute Tests | |
working-directory: ./cucumber-archetype-parallel-advance | |
run: | | |
export ENVIRONMENTS=QA | |
export PASSWORD=Carolina123. | |
export PASSWORD_SUPERADMIN=Carolina123. | |
export PLATFORM_GOAL_EXECUTION_TEST=LOCAL | |
mvn test -Dcucumber.filter.tags="@Logins" | |
- name: Debug Check Features Directory | |
run: | | |
ls -R ./cucumber-archetype-parallel-advance/src/test/resources/ | |
ls -R ./cucumber-archetype-parallel-advance/src/test/java/ | |
- name: Generate Allure Report | |
working-directory: ./cucumber-archetype-parallel-advance | |
run: mvn io.qameta.allure:allure-maven:2.10.0:report | |
- name: Debug List Files in Target Directory | |
run: ls -R ls -R cucumber-archetype-parallel-advance/target/site/ | |
- name: Publish Allure Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: allure-report | |
path: cucumber-archetype-parallel-advance/target/site/allure-maven-plugin/ |