-
Notifications
You must be signed in to change notification settings - Fork 12
70 lines (60 loc) · 1.68 KB
/
test_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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: "End-To-End Tests"
on:
push:
branches:
# Always run on protected branches
- master
- develop
- release
pull_request:
paths:
- "**"
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
overwrite-settings: false
- name: Build Backend
run: ./scripts/build_backend_no_version.sh
- name: Build Frontend
run: ./scripts/build_frontend.sh
- name: Cypress run
# This is a preconfigured action, maintained by cypress, to run e2e tests
# https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v6
with:
working-directory: .
start: bash ./scripts/run_e2e_all.sh
wait-on: "http://localhost:8000"
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: cypress/videos
if-no-files-found: ignore