Trigger release 2.1.4 (#685) #1873
This file contains hidden or 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: E2E Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| checks: write | |
| jobs: | |
| end-to-end-tests: | |
| name: E2E Tests | |
| runs-on: [self-hosted, ase-large-android-sdk-35] | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set Android Sdk Env | |
| run: export ANDROID_HOME=/usr/lib/android-sdk | |
| - name: Set local.properties | |
| run: echo "sdk.dir=/usr/lib/android-sdk" > local.properties | |
| - name: Gradle Wrapper Verification | |
| uses: gradle/actions/wrapper-validation@v3 | |
| # Sanity cleanup | |
| - name: Stop all running docker containers | |
| run: docker stop artemis-app artemis-mysql docker-artemis-app-setup | |
| continue-on-error: true | |
| - name: Remove all docker containers | |
| run: docker rm artemis-app artemis-mysql docker-artemis-app-setup | |
| if: success() || failure() | |
| continue-on-error: true | |
| - name: Remove mysql volume | |
| run: docker volume rm artemis-mysql-data-android || exit 0 | |
| - name: Launch docker containers | |
| run: docker compose -f docker/e2e-tests.yml up -d artemis-app-setup | |
| if: success() || failure() | |
| - name: JDK setup | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 17 | |
| - name: Run tests | |
| run: ./gradlew test --max-workers=4 -Dskip.unit-tests=true -Dskip.e2e=false -Dskip.debugVariants=true -Dskip.flavor.unrestricted=true -Dskip.flavor.beta=true | |
| continue-on-error: true | |
| - name: Test Report | |
| uses: dorny/test-reporter@v1 | |
| if: success() || failure() # run this step even if previous step failed | |
| with: | |
| name: E2E Test Results | |
| path: test-outputs/**/*.xml | |
| reporter: java-junit | |
| fail-on-empty: 'false' | |
| - name: Cleanup -> Stop all running docker containers | |
| if: always() | |
| run: docker stop artemis-app artemis-mysql docker-artemis-app-setup | |
| continue-on-error: true | |
| - name: Cleanup -> Remove all docker containers | |
| if: always() | |
| run: docker rm artemis-app artemis-mysql docker-artemis-app-setup | |
| continue-on-error: true |