From 586fcd8d0c6d3c46dd34399c3624820054033403 Mon Sep 17 00:00:00 2001 From: Stefano Cordio Date: Tue, 29 Oct 2024 15:20:28 +0100 Subject: [PATCH] Rework CI to trigger executions within each module --- .github/workflows/spring-batch-bigquery.yml | 17 +++++++++-------- .../workflows/spring-batch-elasticsearch.yml | 19 +++++++++++-------- .github/workflows/spring-batch-excel.yml | 16 +++++++++------- .github/workflows/spring-batch-geode.yml | 19 +++++++++++-------- .github/workflows/spring-batch-neo4j.yml | 16 +++++++++------- .github/workflows/spring-batch-notion.yml | 13 +++---------- README.md | 16 ++++++++-------- 7 files changed, 60 insertions(+), 56 deletions(-) diff --git a/.github/workflows/spring-batch-bigquery.yml b/.github/workflows/spring-batch-bigquery.yml index 3cc17d19..55c5889b 100644 --- a/.github/workflows/spring-batch-bigquery.yml +++ b/.github/workflows/spring-batch-bigquery.yml @@ -1,23 +1,24 @@ name: Spring Batch BigQuery on: - push: - branches: [ main ] pull_request: - branches: [ main ] + paths: + - 'spring-batch-bigquery/**' + push: + paths: + - 'spring-batch-bigquery/**' jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout source code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: '17' cache: 'maven' - name: Build with Maven - run: mvn -B package --file pom.xml - working-directory: spring-batch-bigquery \ No newline at end of file + run: mvn -B package + working-directory: spring-batch-bigquery diff --git a/.github/workflows/spring-batch-elasticsearch.yml b/.github/workflows/spring-batch-elasticsearch.yml index fcc678ca..fdc59724 100644 --- a/.github/workflows/spring-batch-elasticsearch.yml +++ b/.github/workflows/spring-batch-elasticsearch.yml @@ -1,21 +1,24 @@ name: Spring Batch Elasticsearch on: - push: - branches: [ main ] pull_request: - branches: [ main ] + paths: + - 'spring-batch-elasticsearch/**' + push: + paths: + - 'spring-batch-elasticsearch/**' jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout source code - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: 'temurin' + java-version: '1.8' + cache: 'maven' - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package working-directory: spring-batch-elasticsearch diff --git a/.github/workflows/spring-batch-excel.yml b/.github/workflows/spring-batch-excel.yml index da5ae97e..df7c72d8 100644 --- a/.github/workflows/spring-batch-excel.yml +++ b/.github/workflows/spring-batch-excel.yml @@ -1,22 +1,24 @@ name: Spring Batch Excel on: - push: - branches: [ main ] pull_request: - branches: [ main ] + paths: + - 'spring-batch-excel/**' + push: + paths: + - 'spring-batch-excel/**' jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout source code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: '17' + cache: 'maven' - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package working-directory: spring-batch-excel diff --git a/.github/workflows/spring-batch-geode.yml b/.github/workflows/spring-batch-geode.yml index aff5974e..b6dd6493 100644 --- a/.github/workflows/spring-batch-geode.yml +++ b/.github/workflows/spring-batch-geode.yml @@ -1,21 +1,24 @@ name: Spring Batch Geode on: - push: - branches: [ main ] pull_request: - branches: [ main ] + paths: + - 'spring-batch-geode/**' + push: + paths: + - 'spring-batch-geode/**' jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout source code - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: 'temurin' + java-version: '1.8' + cache: 'maven' - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package working-directory: spring-batch-geode diff --git a/.github/workflows/spring-batch-neo4j.yml b/.github/workflows/spring-batch-neo4j.yml index 20218f90..6decefc4 100644 --- a/.github/workflows/spring-batch-neo4j.yml +++ b/.github/workflows/spring-batch-neo4j.yml @@ -1,22 +1,24 @@ name: Spring Batch Neo4j on: - push: - branches: [ main ] pull_request: - branches: [ main ] + paths: + - 'spring-batch-neo4j/**' + push: + paths: + - 'spring-batch-neo4j/**' jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout source code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: '17' + cache: 'maven' - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package working-directory: spring-batch-neo4j diff --git a/.github/workflows/spring-batch-notion.yml b/.github/workflows/spring-batch-notion.yml index 6b1498ec..fb6eaeab 100644 --- a/.github/workflows/spring-batch-notion.yml +++ b/.github/workflows/spring-batch-notion.yml @@ -8,27 +8,20 @@ on: paths: - 'spring-batch-notion/**' -defaults: - run: - working-directory: spring-batch-notion - env: MAVEN_ARGS: -B -V -ntp -e -Djansi.passthrough=true -Dstyle.color=always jobs: - build: - - name: Build runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - name: Set up Java uses: actions/setup-java@v4 with: - java-version: '21' distribution: 'temurin' - cache: maven + java-version: '21' + cache: 'maven' - name: Build with Maven run: ./mvnw $MAVEN_ARGS verify javadoc:javadoc + working-directory: spring-batch-notion diff --git a/README.md b/README.md index 6c93b454..9a69bda5 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,14 @@ This project is part of the [Spring organization][] on GitHub. ## Available Modules -| Module | Description | Lead | Version | CI build | -|--------------------------------------------------------------------|-------------------------------|------------------------------------------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [spring-batch-bigquery](spring-batch-bigquery/README.adoc) | Support for [Google BigQuery] | [@dgray16](https://github.com/dgray16) | 0.1.0 | [![Spring Batch BigQuery](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-bigquery.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-bigquery.yml) | -| [spring-batch-elasticsearch](spring-batch-elasticsearch/README.md) | Support for [Elasticsearch] | [@parikshitdutta](https://github.com/parikshitdutta) | 0.1.0-SNAPSHOT | [![Spring Batch Elasticsearch](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-elasticsearch.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-elasticsearch.yml) | -| [spring-batch-excel](spring-batch-excel/README.adoc) | Support for [Microsoft Excel] | [@mdeinum](https://github.com/mdeinum) | 0.1.1 | [![Spring Batch Excel](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-excel.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-excel.yml) | -| [spring-batch-geode](spring-batch-geode/README.adoc) | Support for [Apache Geode] | TBA | 0.1.0-SNAPSHOT | [![Spring Batch Geode](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-geode.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-geode.yml) | -| [spring-batch-neo4j](spring-batch-neo4j/README.md) | Support for [Neo4j] | [@michael-simons](https://github.com/michael-simons) | 0.1.0 | [![Spring Batch Neo4j](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-neo4j.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-neo4j.yml) | -| [spring-batch-notion](spring-batch-notion/README.md) | Support for [Notion] | [@scordio](https://github.com/scordio) | 0.1.0-SNAPSHOT | [![Spring Batch Notion](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-notion.yml/badge.svg?branch=main)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-notion.yml?query=branch%3Amain) | +| Module | Description | Lead | Version | CI build | +|--------------------------------------------------------------------|-------------------------------|------------------------------------------------------|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [spring-batch-bigquery](spring-batch-bigquery/README.adoc) | Support for [Google BigQuery] | [@dgray16](https://github.com/dgray16) | 0.1.0 | [![Spring Batch BigQuery](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-bigquery.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-bigquery.yml?query=branch%3Amain) | +| [spring-batch-elasticsearch](spring-batch-elasticsearch/README.md) | Support for [Elasticsearch] | [@parikshitdutta](https://github.com/parikshitdutta) | 0.1.0-SNAPSHOT | [![Spring Batch Elasticsearch](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-elasticsearch.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-elasticsearch.yml?query=branch%3Amain) | +| [spring-batch-excel](spring-batch-excel/README.adoc) | Support for [Microsoft Excel] | [@mdeinum](https://github.com/mdeinum) | 0.1.1 | [![Spring Batch Excel](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-excel.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-excel.yml?query=branch%3Amain) | +| [spring-batch-geode](spring-batch-geode/README.adoc) | Support for [Apache Geode] | TBA | 0.1.0-SNAPSHOT | [![Spring Batch Geode](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-geode.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-geode.yml?query=branch%3Amain) | +| [spring-batch-neo4j](spring-batch-neo4j/README.md) | Support for [Neo4j] | [@michael-simons](https://github.com/michael-simons) | 0.1.0 | [![Spring Batch Neo4j](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-neo4j.yml/badge.svg)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-neo4j.yml?query=branch%3Amain) | +| [spring-batch-notion](spring-batch-notion/README.md) | Support for [Notion] | [@scordio](https://github.com/scordio) | 0.1.0-SNAPSHOT | [![Spring Batch Notion](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-notion.yml/badge.svg?branch=main)](https://github.com/spring-projects/spring-batch-extensions/actions/workflows/spring-batch-notion.yml?query=branch%3Amain) | ## Getting support