nightly-tests-desktop-chrome #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 desktop browser on prod using BrowserStack; prod uses Backblaze for backend storage | |
| name: nightly-tests-desktop-chrome | |
| concurrency: | |
| group: e2e-desktop-nightly-chrome | |
| cancel-in-progress: true | |
| on: | |
| schedule: | |
| # run every day at 2:10am UTC | |
| - cron: '10 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: | |
| desktop-nightly-chrome: | |
| name: prod-desktop-nightly-chrome | |
| 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 (Desktop Chromium): BUILD_INFO' | |
| - name: Prod E2E Tests on Desktop Chromium | |
| # 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:desktop:chromium |