BrowserStack facilities ES #51
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: Maven test manual | |
on: | |
workflow_dispatch: | |
inputs: | |
filter: | |
description: 'Filtro para los test' | |
required: true | |
default: '@Smoke and @Automated' | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
container: crowdar/lippia:3.3.0.0-jdk17 | |
environment: Automation | |
env: | |
BSUSER: ${{ secrets.BSUSER }} | |
AUTHTOKEN: ${{ secrets.AUTHTOKEN }} | |
BSDEVICE: ${{ secrets.BSDEVICE }} | |
BSAPP: ${{ secrets.BSAPP }} | |
BSOS: ${{ secrets.BSOS }} | |
steps: | |
- name: Checkout al repositorio | |
uses: actions/checkout@v4 | |
- name: Configurando JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Lista los directorios para verificar la ruta | |
run: ls -al ~/.m2 | |
- name: Cache de las dependencias de Maven | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Verificando las dependencias de Maven | |
run: mvn dependency:resolve | |
- name: Seteando variable de entorno | |
run: echo "COMBINED_FILTER=${{ github.event.inputs.filter }}" >> $GITHUB_ENV | |
- name: Ejecutando Maven clean test | |
run: | | |
echo "Running tests with filter: '$COMBINED_FILTER'" | |
mvn clean test -Dcrowdar.cucumber.filter="'$COMBINED_FILTER'" -PBrowserStack -PAndroid | |
shell: bash | |
- name: Subiendo informes del test | |
uses: actions/upload-artifact@v4.3.4 | |
with: | |
name: test-results | |
path: target/reports/ | |
- name: Subiendo informes surefire del test | |
uses: actions/upload-artifact@v4.3.4 | |
with: | |
name: test-results-surefire | |
path: target/surefire-reports/ |