This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
143 lines (119 loc) · 3.43 KB
/
continuous-integration.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: Continuous Integration
on:
pull_request:
push:
branches:
- 'release/**'
- 'hotfix/**'
- 'alpha-release/**'
jobs:
check-all-modules-are-tested:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check all modules are tested
run: ./cd/check_modules.sh
ui-selenium-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
!~/.m2/repository/uk
key: gaffer-tools-dependencies
- name: Setup System tests
run: ./cd/setup_ui_system_tests.sh
- name: Run Selenium Tests
uses: GabrielBB/xvfb-action@v1
with:
run: mvn verify -P system-test -Dwebdriver.gecko.driver=geckodriver -pl ui
python-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
!~/.m2/repository/uk
key: gaffer-tools-dependencies
- name: Start road-traffic example
run: |
./ui/example/road-traffic/scripts/start.sh &
sleep 1m
- name: Run Python tests
working-directory: python-shell
run: python3 -m unittest discover -s src
ui-jasmine-test:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
!~/.m2/repository/uk
key: gaffer-tools-dependencies
- name: Install dependencies
run: mvn -q clean install -pl :ui -Pquick -am
- name: Run Tests
run: xvfb-run mvn verify -pl :ui
- name: Cleanup xvfb pidx
uses: bcomnes/cleanup-xvfb@v1
java-build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
modules:
- :gaffer-tools,:mini-accumulo-cluster
- :random-element-generation,:performance-testing,:performance-testing-core,:performance-testing-accumulo-store,:performance-testing-aws
env:
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
!~/.m2/repository/uk
key: gaffer-tools-dependencies
- name: Install
run: mvn -B -q clean install -P quick -pl ${{matrix.modules}} -am
- name: Test
run: mvn verify -B -P coverage -pl ${{matrix.modules}}
- name: Check Copyright Headers
if: github.event_name == 'pull_request'
run: mvn -B -q spotless:check -pl ${{matrix.modules}}
- name: Upload Coverage
uses: codecov/codecov-action@v2