nightly-tests-mobile-android #101
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
| # Run the nightly E2E tests on mobile browser on prod using BrowserStack; prod uses Backblaze for backend storage | |
| name: nightly-tests-mobile-android | |
| concurrency: | |
| group: e2e-mobile-nightly-android | |
| cancel-in-progress: true | |
| on: | |
| schedule: | |
| # run every day at 2:30am UTC | |
| - cron: '30 2 * * *' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| packages: read | |
| contents: read # This is required for actions/checkout | |
| jobs: | |
| mobile-nightly-android: | |
| name: prod-mobile-nightly-android | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/${{ github.repository }}/cached-devcontainer:latest | |
| environment: | |
| name: production | |
| deployment: false | |
| env: | |
| TBPRO_USERNAME: ${{ secrets.E2E_NIGHTLY_PROD_TBPRO_USERNAME }} | |
| TBPRO_PASSWORD: ${{ secrets.E2E_NIGHTLY_PROD_TBPRO_PASSWORD }} | |
| TB_SEND_ENCRYPTION_KEY_CODE: ${{ secrets.E2E_NIGHTLY_PROD_TB_SEND_ENCRYPTION_KEY_CODE }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: | | |
| cd ./packages/send/e2e | |
| npm install | |
| - name: BrowserStack Env Setup | |
| uses: browserstack/github-actions/setup-env@master | |
| with: | |
| username: ${{ secrets.BROWSERSTACK_USERNAME }} | |
| access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
| project-name: 'Thunderbird Send' | |
| build-name: 'TB Send Nightly E2E Tests (Android Chrome): BUILD_INFO' | |
| - name: Prod E2E Tests on Android Chrome | |
| # don't send GHA failure email if any of the E2E tests fail, can be annoying (check the jobs each day in BrowserStack) | |
| continue-on-error: true | |
| run: | | |
| cd ./packages/send/e2e | |
| cp .env.prod.sample .env | |
| npm run test:e2e:nightly:prod:browserstack:mobile:android:chrome |