Skip to content

Upstream merge 2024-11-13 #601

Upstream merge 2024-11-13

Upstream merge 2024-11-13 #601

Workflow file for this run

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@v4
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