forked from opentripplanner/OpenTripPlanner
-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (63 loc) · 1.93 KB
/
smoke-tests.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
name: Smoke Tests
on:
push:
branches:
- ibi-dev-2.x
pull_request:
branches:
- ibi-dev
- ibi-dev-2.x
jobs:
test:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Xmx3g
strategy:
matrix:
locations:
- name: seattle
sleep: 30
- name: atlanta
sleep: 15
- name: houston
sleep: 30
- name: denver
sleep: 15
- name: septa
sleep: 15
- name: portland
# have to sleep longer since computing geofencing zones takes a while
sleep: 125
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Build jar file, compile tests
run: |
mvn --no-transfer-progress clean install -Dmaven.test.skip -P prettierSkip
mvn org.apache.maven.plugins:maven-compiler-plugin:testCompile
- name: Cache OSM files
uses: actions/cache@v3
with:
path: smoke-tests/**/*.pbf
key: osm-${{ matrix.locations.name }}-2023-10-31
- name: Build graph
working-directory: smoke-tests
run: |
make build-${{ matrix.locations.name }}
- name: Run smoke tests
working-directory: smoke-tests
run: |
make run-${{ matrix.locations.name }} &
# OTP needs a little while to start up so we sleep
sleep ${{ matrix.locations.sleep }}
cd ..
# run the actual smoke tests
# we run surefire:test in order to not recompile the tests for each city
mvn --no-transfer-progress surefire:test -Djunit.tags.included="${{ matrix.locations.name }}" -Djunit.tags.excluded="" -P prettierSkip
# shutting down the OTP instance running in the background (via make)
killall make