tet123/debezium-connector-jdbc/.github/workflows/maven.yml
mfvitale 59eb313e11 DBZ-6360 Align CI with others connectors
Cross Maven CI will build core dependency only one time to reduce build time on each connector integration
2023-04-27 08:21:59 +02:00

47 lines
1.5 KiB
YAML

#
# Copyright Debezium Authors
#
# Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
#
name: Maven CI
on:
push:
branches:
- main
- 1.*
- 2.*
paths-ignore:
- '*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout core repository
uses: actions/checkout@v3
with:
repository: debezium/debezium
ref: ${{ github.ref }}
path: core
- name: Checkout JDBC connector
uses: actions/checkout@v3
with:
path: jdbc
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven build core
run: ./jdbc/mvnw clean install -f core/pom.xml -pl debezium-bom,debezium-core,debezium-embedded,debezium-storage -am -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- name: Maven build JDBC
run: ./jdbc/mvnw clean install -f jdbc/pom.xml -Passembly -Dformat.formatter.goal=validate -Dformat.imports.goal=check -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120