From 3102a258d3a64c11c209c5fd6d1d664331f1a66f Mon Sep 17 00:00:00 2001 From: Carles Arnal Date: Tue, 14 May 2024 18:15:12 +0200 Subject: [PATCH] Add examples Ci job --- .github/workflows/integration-tests.yaml | 53 +++++++++++++++++++++++- examples/pom.xml | 10 ++--- 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 3bc3d927c2..65fab75e84 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -51,7 +51,6 @@ jobs: IMAGE_TAG: 1d run: make build-sql-image push-sql-image - prepare-kafkasql-tests: name: Prepare for KafkaSQL Integration Tests runs-on: ubuntu-20.04 @@ -81,6 +80,35 @@ jobs: IMAGE_TAG: 1d run: make build-kafkasql-image push-kafkasql-image + prepare-mem-tests: + name: Prepare for Memory Integration Tests + runs-on: ubuntu-20.04 + if: github.repository_owner == 'Apicurio' && !contains(github.event.*.labels.*.name, 'DO NOT MERGE') + steps: + - name: Show Actor + run: echo ${{github.actor}} + - name: Checkout Code + uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + + - name: Get maven wrapper + run: mvn -N io.takari:maven:wrapper -Dmaven=3.8.2 + + - name: Build kafkasql Variant + run: make SKIP_TESTS=true BUILD_FLAGS='-DskipUiBuild=true -Dmaven.javadoc.skip=true --no-transfer-progress -Dmaven.wagon.httpconnectionManager.maxTotal=30 -Dmaven.wagon.http.retryHandler.count=5' build-in-memory + + - name: Build and Push mem image + env: + IMAGE_REPO: ttl.sh/${{ github.sha }} + # maximum allowed + IMAGE_TAG: 1d + run: make build-mem-image push-mem-image + integration-tests-sql: name: Integration Tests SQL runs-on: ubuntu-20.04 @@ -220,3 +248,26 @@ jobs: with: name: tests-logs path: artifacts + + build-examples: + name: Build and Run Application examples + runs-on: ubuntu-20.04 + needs: prepare-mem-tests + steps: + - name: Checkout Code with Ref '${{ github.ref }}' + uses: actions/checkout@v2 + with: + path: apicurio-registry + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + + - name: Run Apicurio Registry application + run: docker run -d -p 8080:8080 -it ttl.sh/${{ github.sha }}/apicurio/apicurio-registry-mem:1d + + - name: Build Apicurio Registry with Examples + run: cd apicurio-registry && mvn clean install -DskipTests -Pexamples diff --git a/examples/pom.xml b/examples/pom.xml index 9c334e952d..0a490f3353 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -47,13 +47,13 @@ mix-avro jsonschema-validation simple-validation - quarkus-auth - simple-avro-downstream - rest-client-downstream serdes-with-references + avro-maven-with-references + avro-maven-with-references-auto protobuf-validation - tools/kafkasql-topic-import - + simple-protobuf + protobuf-find-latest + protobuf-bean