Skip to content

Commit

Permalink
Rework CI to trigger executions within each module
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Oct 29, 2024
1 parent 65b2b52 commit e53157f
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 56 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/spring-batch-bigquery.yml
Original file line number Diff line number Diff line change
@@ -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
- name: 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
run: mvn -B package
working-directory: spring-batch-bigquery
19 changes: 11 additions & 8 deletions .github/workflows/spring-batch-elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -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
- name: 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
16 changes: 9 additions & 7 deletions .github/workflows/spring-batch-excel.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 11 additions & 8 deletions .github/workflows/spring-batch-geode.yml
Original file line number Diff line number Diff line change
@@ -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
- name: 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
16 changes: 9 additions & 7 deletions .github/workflows/spring-batch-neo4j.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 3 additions & 10 deletions .github/workflows/spring-batch-notion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e53157f

Please sign in to comment.