Skip to content

Commit b667a24

Browse files
stefanbotezStefan Botezcarlzogh
authored
Separate GitHub actions workflows (aws#196)
Co-authored-by: Stefan Botez <[email protected]> Co-authored-by: Carl Zogheib <[email protected]>
1 parent 7c219d7 commit b667a24

6 files changed

+190
-8
lines changed

.github/workflows/maven-build-all.yml renamed to .github/workflows/aws-lambda-java-core.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
# This workflow will build all Java packages in this project with Maven (Java 8)
1+
# This workflow will be triggered if there will be changes to aws-lambda-java-core
2+
# package and it builds the package and the packages that depend on it.
23

3-
name: Java CI with Maven
4+
name: Java CI aws-lambda-java-core
45

56
on:
67
push:
78
branches: [ master ]
9+
paths:
10+
- 'aws-lambda-java-core/**'
811
pull_request:
912
branches: [ '*' ]
13+
paths:
14+
- 'aws-lambda-java-core/**'
1015

1116
jobs:
1217
build:
@@ -20,15 +25,11 @@ jobs:
2025
with:
2126
java-version: 1.8
2227

23-
# Install base modules
28+
# Install base module
2429
- name: Build core with Maven
2530
run: mvn -B install --file aws-lambda-java-core/pom.xml
26-
- name: Build events with Maven
27-
run: mvn -B install --file aws-lambda-java-events/pom.xml
2831

29-
# Package modules that depend on base modules
30-
- name: Build events-sdk-transformer with Maven
31-
run: mvn -B package --file aws-lambda-java-events-sdk-transformer/pom.xml
32+
# Package modules that depend on base module
3233
- name: Build log4j2 with Maven
3334
run: mvn -B package --file aws-lambda-java-log4j2/pom.xml
3435

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will be triggered if there will be changes to
2+
# aws-lambda-java-events-sdk-transformer package and it builds the package.
3+
4+
name: Java CI aws-lambda-java-events-sdk-transformer
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
- 'aws-lambda-java-events-sdk-transformer/**'
11+
pull_request:
12+
branches: [ '*' ]
13+
paths:
14+
- 'aws-lambda-java-events-sdk-transformer/**'
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 1.8
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 1.8
27+
28+
# Install base module
29+
- name: Build events with Maven
30+
run: mvn -B install --file aws-lambda-java-events/pom.xml
31+
# Package target module
32+
- name: Build events-sdk-transformer with Maven
33+
run: mvn -B package --file aws-lambda-java-events-sdk-transformer/pom.xml
34+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will be triggered if there will be changes to aws-lambda-java-events
2+
# package and it builds the package and the packages that depend on it.
3+
4+
name: Java CI aws-lambda-java-events
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
- 'aws-lambda-java-events/**'
11+
pull_request:
12+
branches: [ '*' ]
13+
paths:
14+
- 'aws-lambda-java-events/**'
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 1.8
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 1.8
27+
28+
# Install base module
29+
- name: Build events with Maven
30+
run: mvn -B install --file aws-lambda-java-events/pom.xml
31+
32+
# Package modules that depend on base module
33+
- name: Build serialization with Maven
34+
run: mvn -B package --file aws-lambda-java-serialization/pom.xml
35+
- name: Build events-sdk-transformer with Maven
36+
run: mvn -B package --file aws-lambda-java-events-sdk-transformer/pom.xml
37+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will be triggered if there will be changes to
2+
# aws-lambda-java-log4j2 package and it builds the package.
3+
4+
name: Java CI aws-lambda-java-log4j2
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
- 'aws-lambda-java-log4j2/**'
11+
pull_request:
12+
branches: [ '*' ]
13+
paths:
14+
- 'aws-lambda-java-log4j2/**'
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 1.8
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 1.8
27+
28+
# Install base module
29+
- name: Build core with Maven
30+
run: mvn -B install --file aws-lambda-java-core/pom.xml
31+
# Package target module
32+
- name: Build log4j2 with Maven
33+
run: mvn -B package --file aws-lambda-java-log4j2/pom.xml
34+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will be triggered if there will be changes to
2+
# aws-lambda-java-runtime-interface-client package and it builds the package.
3+
4+
name: Java CI aws-lambda-java-runtime-interface-client
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
- 'aws-lambda-java-runtime-interface-client/**'
11+
pull_request:
12+
branches: [ '*' ]
13+
paths:
14+
- 'aws-lambda-java-runtime-interface-client/**'
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 1.8
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 1.8
27+
28+
# Install base modules
29+
- name: Build core with Maven
30+
run: mvn -B install --file aws-lambda-java-core/pom.xml
31+
- name: Build serialization with Maven
32+
run: mvn -B install --file aws-lambda-java-serialization/pom.xml
33+
# Test Runtime Interface Client
34+
- name: Run 'pr' target
35+
working-directory: ./aws-lambda-java-runtime-interface-client
36+
run: make pr
37+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will be triggered if there will be changes to aws-lambda-java-serialization
2+
# package and it builds the package and the packages that depend on it.
3+
4+
name: Java CI aws-lambda-java-serialization
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
- 'aws-lambda-java-serialization/**'
11+
pull_request:
12+
branches: [ '*' ]
13+
paths:
14+
- 'aws-lambda-java-serialization/**'
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 1.8
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 1.8
27+
28+
# Install base module
29+
- name: Build events with Maven
30+
run: mvn -B install --file aws-lambda-java-events/pom.xml
31+
# Install target module
32+
- name: Build serialization with Maven
33+
run: mvn -B install --file aws-lambda-java-serialization/pom.xml
34+
35+
# Test Runtime Interface Client
36+
- name: Run 'pr' target
37+
working-directory: ./aws-lambda-java-runtime-interface-client
38+
run: make pr
39+

0 commit comments

Comments
 (0)