-
Notifications
You must be signed in to change notification settings - Fork 3.3k
56 lines (55 loc) · 1.63 KB
/
e2e-sql.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
name: E2E Sql Tests
on:
push:
branches:
- master
- release
pull_request:
branches:
- master
- release
schedule:
- cron: "0 0 * * *" #end of every day
jobs:
E2E-sql-testing:
runs-on: ubuntu-latest
strategy:
fail-fast: false #ensure both tests run even if one fails
matrix:
browser: [firefox]
tests: [stable, unstable]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('.gradle/*.gradle*', 'build.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Update Property File
run: mv src/e2e/resources/test.ci-${{ matrix.browser }}.properties src/e2e/resources/test.properties
- name: Run Solr search service + local Datastore emulator
run: docker compose up -d
- name: Create Config Files
run: ./gradlew createConfigs testClasses generateTypes
- name: Install Frontend Dependencies
run: npm ci
- name: Build Frontend Bundle
run: npm run build
- name: Start Server
run: |
./gradlew serverRun &
./wait-for-server.sh
- name: Start Tests
run: xvfb-run --server-args="-screen 0 1024x768x24" ./gradlew -P${{ matrix.tests }} e2eTestsSql