Add commons-kstreams
module and implement Kafka Streams exception h…
#1362
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: { } | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag=v3.5.3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # tag=v3.12.0 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: |- | |
mvn -pl '!e2e' clean verify \ | |
failsafe:integration-test -DskipITs=false \ | |
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar | |
test-native-image: | |
name: Test Native Image | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request' }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
module: | |
- mirror-service | |
- notification-publisher | |
- repository-meta-analyzer | |
- vulnerability-analyzer | |
fail-fast: true | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag=v3.5.3 | |
- name: Set up JDK | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # tag=v3.12.0 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Set up GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
version: 'latest' | |
java-version: '17' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Native Image | |
run: |- | |
mvn -pl commons,commons-kstreams,commons-persistence,proto,${{ matrix.module }} clean install -Pnative -DskipTests | |
- name: Test Native Image | |
run: |- | |
mvn -pl commons,commons-persistence,proto,${{ matrix.module }} \ | |
test-compile failsafe:integration-test failsafe:verify -Pnative |