-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (63 loc) · 2.35 KB
/
e2e-test.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
71
72
73
74
75
76
77
78
79
name: E2E Tests
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
jobs:
end-to-end-tests:
name: E2E Tests
runs-on: [self-hosted, ase-large-android-sdk-35]
timeout-minutes: 60
steps:
- name: Set Android Sdk Env
run: export ANDROID_HOME=/usr/lib/android-sdk
- uses: actions/checkout@v4
- name: Set local.properties
run: echo "sdk.dir=/usr/lib/android-sdk" > local.properties
- name: Gradle Wrapper Verification
uses: gradle/wrapper-validation-action@v1
# Sanity cleanup
- name: Stop all running docker containers
run: docker stop artemis-app artemis-mysql docker-artemis-app-setup
continue-on-error: true
- name: Remove all docker containers
run: docker rm artemis-app artemis-mysql docker-artemis-app-setup
if: success() || failure()
continue-on-error: true
# Sanity cleanup 2
- name: Print what is running on port 3306
run: sudo lsof -i:3306 || true
continue-on-error: true
- name: Stop anything still running on port 3306
run: sudo kill -9 $(sudo lsof -t -i:3306) || true
continue-on-error: true
- name: Launch docker containers
run: docker compose -f docker/e2e-tests.yml up -d artemis-app-setup
if: success() || failure()
- name: JDK setup
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: run tests
run: ./gradlew test --max-workers=4 -Dskip.unit-tests=true -Dskip.e2e=false -Dskip.debugVariants=true -Dskip.flavor.unrestricted=true -Dskip.flavor.beta=true
continue-on-error: true
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: E2E Test Results
path: test-outputs/**/*.xml
reporter: java-junit
fail-on-empty: 'false'
- name: Cleanup -> Stop all running docker containers
if: always()
run: docker stop artemis-app artemis-mysql docker-artemis-app-setup
continue-on-error: true
- name: Cleanup -> Remove all docker containers
if: always()
run: docker rm artemis-app artemis-mysql docker-artemis-app-setup
continue-on-error: true