-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (43 loc) · 1.38 KB
/
nightly-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: nightly-tests
concurrency:
group: nightly-tests
cancel-in-progress: true
on:
schedule:
# run every day at 1am UTC (8PM EST)
- cron: '0 1 * * *'
# 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-browserstack:
name: prod-sanity-browserstack
runs-on: ubuntu-latest
environment: production
env:
APPT_PROD_LOGIN_EMAIL: ${{ secrets.E2E_APPT_PROD_LOGIN_EMAIL }}
APPT_PROD_LOGIN_PWORD: ${{ secrets.E2E_APPT_PROD_LOGIN_PASSWORD }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'test/e2e/package-lock.json'
- name: Install dependencies
run: |
cd ./test/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 Appointment'
build-name: 'Nightly Tests: BUILD_INFO'
- name: Run Playwright Tests on Browserstack
run: |
cd ./test/e2e
cp .env.example .env
npm run prod-sanity-test-browserstack-gha