build(deps): bump getsentry/action-app-sdk-overhead-metrics from ecce2e2718b6d97ad62220fca05627900b061ed5 to 44fb5489ac4ac252c87d84811972dc93a1e490b8 #10847
Workflow file for this run
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: 'Integration Tests' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Ui tests | |
| runs-on: ubuntu-latest | |
| # we copy the secret to the env variable in order to access it in the workflow | |
| env: | |
| SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
| SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | |
| GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| submodules: 'recursive' | |
| - name: 'Set up Java: 17' | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| # Clean, build and release a test apk, but only if we will run the benchmark | |
| - name: Make assembleUiTests | |
| if: env.SAUCE_USERNAME != null | |
| run: make assembleUiTests | |
| - name: Install SauceLabs CLI | |
| uses: saucelabs/saucectl-run-action@39e4f0666ca8ecb4b60847213c6e0fbd6a0c2bd8 # pin@v4.3.0 | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| with: | |
| skip-run: true | |
| if: env.SAUCE_USERNAME != null | |
| - name: Run Tests | |
| id: saucelabs | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| exec &> >(tee -a "test_logs.txt") | |
| saucectl run -c .sauce/sentry-uitest-android-ui.yml | |
| if: env.SAUCE_USERNAME != null | |
| continue-on-error: true | |
| - name: Verify Test Results | |
| run: | | |
| processCrashed=$(cat test_logs.txt | grep "Instrumentation run failed due to 'Process crashed.'" | wc -l) | |
| if [[ ${{ steps.saucelabs.outcome }} == 'success' ]]; then | |
| exit 0 | |
| elif [[ "$processCrashed" -ne 0 ]]; then | |
| exit 0 | |
| else | |
| exit 1 | |
| fi | |
| if: env.SAUCE_USERNAME != null | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./artifacts/*.xml |