From b1ce447f3207975bd7212297874f6af9898b8541 Mon Sep 17 00:00:00 2001 From: rwood-moz Date: Wed, 18 Nov 2026 10:19:41 -0500 Subject: [PATCH 1/2] Add E2E prod sanity test git workflow --- .../e2e-prod-sanity-desktop-firefox.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/e2e-prod-sanity-desktop-firefox.yml diff --git a/.github/workflows/e2e-prod-sanity-desktop-firefox.yml b/.github/workflows/e2e-prod-sanity-desktop-firefox.yml new file mode 100644 index 000000000..ffc4f49f4 --- /dev/null +++ b/.github/workflows/e2e-prod-sanity-desktop-firefox.yml @@ -0,0 +1,60 @@ +name: e2e-prod-sanity-desktop-firefox + +concurrency: + group: e2e-prod-sanity-desktop-firefox + cancel-in-progress: true + +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +permissions: + contents: read # This is required for actions/checkout + +jobs: + prod-sanity-desktop-firefox: + name: prod-sanity-desktop-firefox + runs-on: ubuntu-26.04 + environment: + name: production + deployment: false + env: + TB_ACCTS_EMAIL: ${{ secrets.E2E_APPT_PROD_TB_ACCTS_EMAIL }} + TB_ACCTS_PWORD: ${{ secrets.E2E_APPT_PROD_TB_ACCTS_PWORD }} + APPT_DISPLAY_NAME: ${{ secrets.E2E_APPT_PROD_DISPLAY_NAME }} + APPT_MY_SHARE_LINK: ${{ secrets.E2E_APPT_PROD_MY_SHARE_LINK }} + APPT_BOOKEE_NAME: ${{ secrets.E2E_APPT_PROD_BOOKEE_NAME }} + APPT_BOOKEE_EMAIL: ${{ secrets.E2E_APPT_PROD_BOOKEE_EMAIL }} + steps: + - uses: actions/checkout@v7 + + - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6 + with: + version: 11.15.1 + + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: 'pnpm' + cache-dependency-path: 'test/e2e/pnpm-lock.yaml' + + - name: Install dependencies + run: | + cd ./test/e2e + pnpm install --frozen-lockfile + + - name: BrowserStack Env Setup + uses: browserstack/github-actions/setup-env@e1ceb209003b8bf050dac07c9038347259fed39c # master + with: + username: ${{ secrets.BROWSERSTACK_USERNAME }} + access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + project-name: 'Thunderbird Appointment' + build-name: 'TB Appointment Nightly Tests (Desktop Firefox): BUILD_INFO' + + - name: Prod Sanity E2E Tests on Desktop Firefox + # don't send GHA failure email if any of the E2E tests fail, can be annoying (I check the jobs each day in BrowserStack) + continue-on-error: true + run: | + cd ./test/e2e + cp .env.prod.example .env + pnpm run prod-sanity-test-browserstack-firefox From c5b81ad4113e0cb885a1b9d5355ebaf0865485e0 Mon Sep 17 00:00:00 2001 From: rwood-moz Date: Wed, 18 Nov 2026 12:33:31 -0500 Subject: [PATCH 2/2] Implement review suggestions --- .github/workflows/e2e-prod-sanity-desktop-firefox.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/e2e-prod-sanity-desktop-firefox.yml b/.github/workflows/e2e-prod-sanity-desktop-firefox.yml index ffc4f49f4..1dd9f61b0 100644 --- a/.github/workflows/e2e-prod-sanity-desktop-firefox.yml +++ b/.github/workflows/e2e-prod-sanity-desktop-firefox.yml @@ -49,11 +49,9 @@ jobs: username: ${{ secrets.BROWSERSTACK_USERNAME }} access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} project-name: 'Thunderbird Appointment' - build-name: 'TB Appointment Nightly Tests (Desktop Firefox): BUILD_INFO' + build-name: 'TB Appointment Prod Sanity Test (Desktop Firefox): BUILD_INFO' - name: Prod Sanity E2E Tests on Desktop Firefox - # don't send GHA failure email if any of the E2E tests fail, can be annoying (I check the jobs each day in BrowserStack) - continue-on-error: true run: | cd ./test/e2e cp .env.prod.example .env