-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (32 loc) · 1.13 KB
/
e2e-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
name: E2E_Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
e2e-tests:
name: E2E-Testing
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Install Dependencies
run: npm install
- name: Setup Cypress
run: npm install cypress --save-dev
- name: Run Cypress test
env:
CYPRESS_WEB_DOMAIN: ${{ secrets.WEB_DOMAIN }}
CYPRESS_WEB_DOMAIN_USERNAME: ${{ secrets.WEB_DOMAIN_USERNAME }}
CYPRESS_WEB_DOMAIN_PASSWORD: ${{ secrets.WEB_DOMAIN_PASSWORD }}
CYPRESS_IDENTITY_POOL_ID: ${{ secrets.IDENTITY_POOL_ID }}
CYPRESS_USER_DOMAIN: ${{ secrets.USER_DOMAIN }}
CYPRESS_USER_POOL_CLIENT_ID: ${{ secrets.USER_POOL_CLIENT_ID }}
CYPRESS_USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
CYPRESS_WEB_SOCKET_URL: ${{ secrets.WEB_SOCKET_URL }}
CYPRESS_COGNITO_EMAIL: ${{ secrets.COGNITO_EMAIL }}
CYPRESS_COGNITO_PASSWORD: ${{ secrets.COGNITO_PASSWORD }}
run: npm run cypress