Skip to content

Commit

Permalink
Add examples Ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed May 14, 2024
1 parent 6c8a2ed commit 3102a25
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 6 deletions.
53 changes: 52 additions & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 5 additions & 5 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
<module>mix-avro</module>
<module>jsonschema-validation</module>
<module>simple-validation</module>
<module>quarkus-auth</module>
<module>simple-avro-downstream</module>
<module>rest-client-downstream</module>
<module>serdes-with-references</module>
<module>avro-maven-with-references</module>
<module>avro-maven-with-references-auto</module>
<module>protobuf-validation</module>
<module>tools/kafkasql-topic-import</module>
<!--<module>camel-quarkus-kafka</module>-->
<module>simple-protobuf</module>
<module>protobuf-find-latest</module>
<module>protobuf-bean</module>
</modules>

<properties>
Expand Down

0 comments on commit 3102a25

Please sign in to comment.