Skip to content

Commit e53157f

Browse files
committed
Rework CI to trigger executions within each module
1 parent 65b2b52 commit e53157f

7 files changed

+60
-56
lines changed
+9-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
name: Spring Batch BigQuery
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- 'spring-batch-bigquery/**'
7+
push:
8+
paths:
9+
- 'spring-batch-bigquery/**'
810

911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Checkout source code
14-
uses: actions/checkout@v4
15+
- name: actions/checkout@v4
1516
- name: Set up JDK 17
1617
uses: actions/setup-java@v4
1718
with:
1819
distribution: 'temurin'
19-
java-version: 17
20+
java-version: '17'
2021
cache: 'maven'
2122
- name: Build with Maven
22-
run: mvn -B package --file pom.xml
23-
working-directory: spring-batch-bigquery
23+
run: mvn -B package
24+
working-directory: spring-batch-bigquery
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
name: Spring Batch Elasticsearch
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- 'spring-batch-elasticsearch/**'
7+
push:
8+
paths:
9+
- 'spring-batch-elasticsearch/**'
810

911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Checkout source code
14-
uses: actions/checkout@v2
15+
- name: actions/checkout@v4
1516
- name: Set up JDK 1.8
16-
uses: actions/setup-java@v1
17+
uses: actions/setup-java@v4
1718
with:
18-
java-version: 1.8
19+
distribution: 'temurin'
20+
java-version: '1.8'
21+
cache: 'maven'
1922
- name: Build with Maven
20-
run: mvn -B package --file pom.xml
23+
run: mvn -B package
2124
working-directory: spring-batch-elasticsearch
+9-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: Spring Batch Excel
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- 'spring-batch-excel/**'
7+
push:
8+
paths:
9+
- 'spring-batch-excel/**'
810

911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Checkout source code
14-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
1516
- name: Set up JDK 17
1617
uses: actions/setup-java@v4
1718
with:
1819
distribution: 'temurin'
19-
java-version: 17
20+
java-version: '17'
21+
cache: 'maven'
2022
- name: Build with Maven
21-
run: mvn -B package --file pom.xml
23+
run: mvn -B package
2224
working-directory: spring-batch-excel
+11-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
name: Spring Batch Geode
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- 'spring-batch-geode/**'
7+
push:
8+
paths:
9+
- 'spring-batch-geode/**'
810

911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Checkout source code
14-
uses: actions/checkout@v2
15+
- name: actions/checkout@v4
1516
- name: Set up JDK 1.8
16-
uses: actions/setup-java@v1
17+
uses: actions/setup-java@v4
1718
with:
18-
java-version: 1.8
19+
distribution: 'temurin'
20+
java-version: '1.8'
21+
cache: 'maven'
1922
- name: Build with Maven
20-
run: mvn -B package --file pom.xml
23+
run: mvn -B package
2124
working-directory: spring-batch-geode
+9-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: Spring Batch Neo4j
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- 'spring-batch-neo4j/**'
7+
push:
8+
paths:
9+
- 'spring-batch-neo4j/**'
810

911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Checkout source code
14-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
1516
- name: Set up JDK 17
1617
uses: actions/setup-java@v4
1718
with:
1819
distribution: 'temurin'
19-
java-version: 17
20+
java-version: '17'
21+
cache: 'maven'
2022
- name: Build with Maven
21-
run: mvn -B package --file pom.xml
23+
run: mvn -B package
2224
working-directory: spring-batch-neo4j

.github/workflows/spring-batch-notion.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,20 @@ on:
88
paths:
99
- 'spring-batch-notion/**'
1010

11-
defaults:
12-
run:
13-
working-directory: spring-batch-notion
14-
1511
env:
1612
MAVEN_ARGS: -B -V -ntp -e -Djansi.passthrough=true -Dstyle.color=always
1713

1814
jobs:
19-
2015
build:
21-
22-
name: Build
2316
runs-on: ubuntu-latest
24-
2517
steps:
2618
- uses: actions/checkout@v4
2719
- name: Set up Java
2820
uses: actions/setup-java@v4
2921
with:
30-
java-version: '21'
3122
distribution: 'temurin'
32-
cache: maven
23+
java-version: '21'
24+
cache: 'maven'
3325
- name: Build with Maven
3426
run: ./mvnw $MAVEN_ARGS verify javadoc:javadoc
27+
working-directory: spring-batch-notion

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This project is part of the [Spring organization][] on GitHub.
66

77
## Available Modules
88

9-
| Module | Description | Lead | Version | CI build |
10-
|--------------------------------------------------------------------|-------------------------------|------------------------------------------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
11-
| [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) |
12-
| [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) |
13-
| [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) |
14-
| [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) |
15-
| [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) |
16-
| [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) |
9+
| Module | Description | Lead | Version | CI build |
10+
|--------------------------------------------------------------------|-------------------------------|------------------------------------------------------|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
11+
| [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) |
12+
| [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) |
13+
| [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) |
14+
| [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) |
15+
| [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) |
16+
| [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) |
1717

1818
## Getting support
1919

0 commit comments

Comments
 (0)