-
Notifications
You must be signed in to change notification settings - Fork 79
52 lines (41 loc) · 1.2 KB
/
cypress.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
52
name: Cypress nightly tests
on:
schedule:
- cron: '30 5 * * 1,3,5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# Kill this job after 60 minutes - used when server fails, but Cypress waits on port.
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Install `easy_toolbox.py` requirements
run: |
python -m pip install --upgrade pip
pip install -U inquirer
- name: Build OIOIOI
run: |
python easy_toolbox.py build --no-input
- name: Containers `up`
run: |
python easy_toolbox.py up --no-input
- name: Wait for migrations
uses: whatnick/wait-action@master
with:
time: 30s
- name: Apply CyPress settings
run: |
python easy_toolbox.py cypress-apply-settings --no-input
- name: Run test server
run: |
python easy_toolbox.py run --no-input &
- name: Run tests
run: |
./test_cypress.sh
- name: Upload screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: oioioi_cypress/cypress/screenshots