Skip to content

[Backport 31.x] [GEOT-7568] ExternalGraphic isn't drawn when defined in LegendGraphic #3947

[Backport 31.x] [GEOT-7568] ExternalGraphic isn't drawn when defined in LegendGraphic

[Backport 31.x] [GEOT-7568] ExternalGraphic isn't drawn when defined in LegendGraphic #3947

name: PostGIS online tests
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: huaxk/postgis-action@v1
with:
postgresql version: '11'
postgresql password: 'geotools'
postgresql user: 'geotools'
postgresql db: 'gttest'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
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: Build GeoTools dependent modules (no tests, prepare fresh artifacts)
run: mvn -B clean install -T2 -U -Dall --file pom.xml -DskipTests -pl modules/plugin/jdbc/jdbc-postgis -pl modules/plugin/imagemosaic -am -Dspotless.apply.skip=true
- name: Build PostGIS data store with online tests
run: |
mkdir ~/.geotools
cat <<EOT >> ~/.geotools/postgis.properties
user=geotools
port=5432
password=geotools
passwd=geotools
url=jdbc\:postgresql\://localhost/gttest
host=localhost
database=gttest
driver=org.postgresql.Driver
EOT
cat <<EOT >> ~/.geotools/postgis_datastore.properties
SPI=org.geotools.data.postgis.PostgisNGDataStoreFactory
user=geotools
port=5432
password=geotools
passwd=geotools
url=jdbc\:postgresql\://localhost/gttest
host=localhost
database=gttest
schema=public
Loose\ bbox=true
Estimated\ extends=false
Connection\ timeout=10
validate\ connections=true
preparedStatements=false
EOT
mvn -B clean install --file modules/plugin/jdbc/jdbc-postgis/pom.xml -Ponline -nsu
mvn -B clean install --file modules/plugin/imagemosaic/pom.xml -Ponline -nsu
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}