DBZ-8604 Add assembly profile to build dist package #29
Workflow file for this run
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: Test Debezium platform (conductor) | |
on: | |
push: | |
paths: | |
- "debezium-platform-conductor/**" | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "debezium-platform-conductor/**" | |
branches: | |
- main | |
jobs: | |
build_cache: | |
name: "Update Dependencies" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: debezium-platform-conductor | |
steps: | |
- name: Checkout core repository | |
uses: actions/checkout@v4 | |
with: | |
repository: debezium/debezium | |
ref: main | |
path: debezium-platform-conductor/core | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Set Output | |
id: step1 | |
run: echo $GITHUB_WORKSPACE | |
- id: maven-cache-check | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: maven-debezium-platform-test-build-${{ hashFiles('core/**/pom.xml') }} | |
restore-keys: maven-debezium-platform-test-build-${{ hashFiles('core/**/pom.xml') }} | |
- name: Maven build core dependencies | |
if: steps.maven-cache-check.outputs.cache-hit != 'true' | |
run: > | |
./core/mvnw clean install -f core/pom.xml | |
-DskipTests | |
-DskipITs | |
-Dformat.formatter.goal=validate | |
-Dformat.imports.goal=check | |
-Dhttp.keepAlive=false | |
-Dmaven.wagon.http.pool=false | |
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
-Dmaven.javadoc.skip=true | |
-Dstyle.color=always | |
--no-transfer-progress | |
-T4 | |
check_style: | |
name: "Checkstyle and Formatting" | |
needs: [ build_cache ] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: debezium-platform-conductor | |
steps: | |
- name: Checkout Action | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Cache Maven Repository | |
id: cache-check | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: maven-debezium-platform-test-build-${{ hashFiles('**/pom.xml') }} | |
restore-keys: maven-debezium-platform-test-build-${{ hashFiles('**/pom.xml') }} | |
- name: "Checkstyle, Formatting, and Import Order Checks" | |
run: > | |
./mvnw -B -ntp process-sources checkstyle:checkstyle | |
-Dformat.formatter.goal=validate | |
-Dformat.imports.goal=check | |
-Dorg.slf4j.simpleLogger.showDateTime=true | |
-Dorg.slf4j.simpleLogger.dateTimeFormat="YYYY-MM-dd HH:mm:ss,SSS" | |
tests: | |
name: "Run tests" | |
needs: [ check_style] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: debezium-platform-conductor | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Cache Maven Repository | |
id: cache-check | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: maven-debezium-platform-test-build-${{ hashFiles('**/pom.xml') }} | |
restore-keys: maven-debezium-platform-test-build-${{ hashFiles('**/pom.xml') }} | |
- name: Run tests | |
run: ./mvnw clean verify |