Skip to content

Commit 27dcdb6

Browse files
committed
Add workflow to build spring batch extensions
1 parent 90497bc commit 27dcdb6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Spring Batch Extension Build
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
extension:
7+
description: "Extension name"
8+
required: true
9+
type: choice
10+
options:
11+
- spring-batch-bigquery
12+
- spring-batch-excel
13+
- spring-batch-elasticsearch
14+
- spring-batch-geode
15+
- spring-batch-neo4j
16+
17+
jobs:
18+
build:
19+
name: Build an extension
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout source code
23+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24+
with:
25+
name: spring-projects/spring-batch-extensions
26+
ref: 'main'
27+
28+
- name: Set up JDK 17
29+
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
30+
with:
31+
java-version: '17'
32+
distribution: 'temurin'
33+
34+
- name: Capture extension name
35+
run: echo EXTENSION_NAME=${{ github.event.inputs.extension }} >> $GITHUB_ENV
36+
37+
- name: Build extension with Maven
38+
run: mvn -B package --file pom.xml
39+
working-directory: ${EXTENSION_NAME}

0 commit comments

Comments
 (0)