forked from geotools/geotools
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.22 KB
/
mysql_online.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
name: MySQL online tests
on: [pull_request]
jobs:
build:
name: MySQL ${{ matrix.mysql }} online test
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
mysql: [5, 8]
java: [11]
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- uses: actions/checkout@v2
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: gt-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gt-maven-
- name: Setup test environment for MySQL ${{ matrix.mysql }}
run: |
./build/ci/mysql/start-mysql.sh ${{ matrix.mysql }}
./build/ci/mysql/setup-mysql.sh
- name: Build GeoTools dependent modules (no tests)
run: mvn -B clean install -T2 -Dall -pl :gt-jdbc-mysql -DskipTests -Dspotless.apply.skip=true -am
- name: Test MySQL data store
run: mvn -B clean install -T2 -Dall -pl :gt-jdbc-mysql -Ponline -Dspotless.apply.skip=true
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}