-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.44 KB
/
cypress-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
name: Cypress Tests
on:
schedule:
- cron: '30 8 * * *'
workflow_dispatch:
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout
uses: actions/checkout@v3
with:
ref: dev
- name: Uninstall node-sass
run: npm uninstall node-sass
- name: Install OS dependencies
run: |
apt search libnss3
sudo apt-get update
sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- name: Cypress
uses: cypress-io/github-action@v5
with:
config-file: cypress/cypress.config.ts
record: true
config: video=true,retries=2
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RESEARCHER_USER_NAME: ${{ secrets.CYPRESS_RESEARCHER_USER_NAME }}
CYPRESS_RESEARCHER_USER_PASSWORD: ${{ secrets.CYPRESS_RESEARCHER_USER_PASSWORD }}
CYPRESS_RESEARCHER_NAME: ${{ vars.CYPRESS_RESEARCHER_NAME }}
CYPRESS_LIBRARIAN_USER_NAME: ${{ secrets.CYPRESS_LIBRARIAN_USER_NAME }}
CYPRESS_LIBRARIAN_USER_PASSWORD: ${{ secrets.CYPRESS_LIBRARIAN_USER_PASSWORD }}
CYPRESS_LIBRARIAN_NAME: ${{ vars.CYPRESS_LIBRARIAN_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}