Skip to content

[Ili2pgImportSchema] support (enhance?) for parameter metaConfig #687

[Ili2pgImportSchema] support (enhance?) for parameter metaConfig

[Ili2pgImportSchema] support (enhance?) for parameter metaConfig #687

Workflow file for this run

name: gretl
on:
workflow_dispatch:
push:
paths-ignore:
- 'docs/**'
- 'openshift/**'
- '**.md'
jobs:
build:
runs-on: ubuntu-22.04
env:
BUILD_NUMBER: ${{ github.run_number }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew clean gretl:classes
- name: Unit tests and publish plugin to local maven repo
run: |
TZ="Europe/Zurich" ./gradlew gretl:test gretl:dbTest gretl:s3Test
./gradlew gretl:build gretl:publishPluginMavenPublicationToMavenLocal -x test
# run: |
# ./gradlew gretl:build gretl:publishPluginMavenPublicationToMavenLocal -x test
# - name: Debug1
# run: |
# ls -la ~/.m2/repository/ch/so/agi/gretl
- name: Integration tests (Plugin)
id: jarTest
run: |
TZ="Europe/Zurich" ./gradlew gretl:jarTest gretl:jarS3Test
- uses: actions/upload-artifact@v4
if: always() && (steps.jarTest.outcome == 'failure')
with:
name: reports-jar
path: gretl/build/reports/tests/
- name: Build Docker image for integration tests
run: |
./gradlew runtimeImage:buildImage
- name: List images
run: |
docker images
- name: Integration tests (Docker image)
id: imageTest
run: |
mkdir -p "$HOME"/gradlecache
chmod 777 -R "$HOME"/gradlecache
TZ="Europe/Zurich" ./gradlew gretl:imageTest gretl:imageS3Test
# run: |
# TZ="Europe/Zurich" ./gradlew gretl:imageTest --tests ch.so.agi.gretl.jobs.XslTransformerTest
- uses: actions/upload-artifact@v4
if: always() && (steps.imageTest.outcome == 'failure')
with:
name: reports-image
path: gretl/build/reports/tests/
- name: Login to Docker Container Registry
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') && !env.ACT }}
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') && !env.ACT }}
uses: docker/setup-buildx-action@v2
- name: Publish plugin
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') && !env.ACT }}
run: ./gradlew gretl:publishPlugins -s
env:
gradlePublishKey: ${{ secrets.GRADLEPUBLISHKEY }}
gradlePublishSecret: ${{ secrets.GRADLEPUBLISHSECRET }}
- name: Build final multi-arch Docker image and push to registry
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') && !env.ACT }}
run: |
./gradlew runtimeImage:buildAndPushMultiArchImage