-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.39 KB
/
cy.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
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
eslint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install modules
run: npm install
- name: Run ESLint
run: npm run lint
cypress-tests-desktop:
needs: eslint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run end-to-end tests on desktop viewport 🧪
uses: cypress-io/github-action@v5
env:
CYPRESS_USER_EMAIL: ${{ secrets.CYPRESS_USER_EMAIL }}
CYPRESS_USER_PASSWORD: ${{ secrets.CYPRESS_USER_PASSWORD }}
CYPRESS_MAILOSAUR_SERVER_ID: ${{ secrets.CYPRESS_MAILOSAUR_SERVER_ID }}
CYPRESS_MAILOSAUR_API_KEY: ${{ secrets.CYPRESS_MAILOSAUR_API_KEY }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
with:
command: npm run test:cloud
cypress-tests-tablet:
needs: eslint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run end-to-end tests on tablet viewport 🧪
uses: cypress-io/github-action@v5
env:
CYPRESS_USER_EMAIL: ${{ secrets.CYPRESS_USER_EMAIL }}
CYPRESS_USER_PASSWORD: ${{ secrets.CYPRESS_USER_PASSWORD }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
with:
command: npm run test:tablet:cloud