Skip to content

Commit ba05e1a

Browse files
authored
Merge pull request stleary#874 from stleary/pipeline-updates
Deployment and Pipeline action updates
2 parents 3f97826 + 390d442 commit ba05e1a

File tree

2 files changed

+148
-85
lines changed

2 files changed

+148
-85
lines changed

.github/workflows/deployment.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/workflows/pipeline.yml

Lines changed: 148 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,159 @@ jobs:
3434
with:
3535
name: Create java 1.6 JAR
3636
path: target/*.jar
37-
build:
37+
38+
build-8:
39+
runs-on: ubuntu-latest
40+
strategy:
41+
fail-fast: false
42+
max-parallel: 1
43+
matrix:
44+
# build against supported Java LTS versions:
45+
java: [ 8 ]
46+
name: Java ${{ matrix.java }}
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Set up JDK ${{ matrix.java }}
50+
uses: actions/setup-java@v3
51+
with:
52+
distribution: 'temurin'
53+
java-version: ${{ matrix.java }}
54+
cache: 'maven'
55+
- name: Compile Java ${{ matrix.java }}
56+
run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true
57+
- name: Run Tests ${{ matrix.java }}
58+
run: |
59+
mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
60+
- name: Build Test Report ${{ matrix.java }}
61+
if: ${{ always() }}
62+
run: |
63+
mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
64+
mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
65+
- name: Upload Test Results ${{ matrix.java }}
66+
if: ${{ always() }}
67+
uses: actions/upload-artifact@v3
68+
with:
69+
name: Test Results ${{ matrix.java }}
70+
path: target/surefire-reports/
71+
- name: Upload Test Report ${{ matrix.java }}
72+
if: ${{ always() }}
73+
uses: actions/upload-artifact@v3
74+
with:
75+
name: Test Report ${{ matrix.java }}
76+
path: target/site/
77+
- name: Package Jar ${{ matrix.java }}
78+
run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true
79+
- name: Upload Package Results ${{ matrix.java }}
80+
if: ${{ always() }}
81+
uses: actions/upload-artifact@v3
82+
with:
83+
name: Package Jar ${{ matrix.java }}
84+
path: target/*.jar
85+
86+
build-11:
87+
runs-on: ubuntu-latest
88+
strategy:
89+
fail-fast: false
90+
max-parallel: 1
91+
matrix:
92+
# build against supported Java LTS versions:
93+
java: [ 11 ]
94+
name: Java ${{ matrix.java }}
95+
steps:
96+
- uses: actions/checkout@v3
97+
- name: Set up JDK ${{ matrix.java }}
98+
uses: actions/setup-java@v3
99+
with:
100+
distribution: 'temurin'
101+
java-version: ${{ matrix.java }}
102+
cache: 'maven'
103+
- name: Compile Java ${{ matrix.java }}
104+
run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true
105+
- name: Run Tests ${{ matrix.java }}
106+
run: |
107+
mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
108+
- name: Build Test Report ${{ matrix.java }}
109+
if: ${{ always() }}
110+
run: |
111+
mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
112+
mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
113+
- name: Upload Test Results ${{ matrix.java }}
114+
if: ${{ always() }}
115+
uses: actions/upload-artifact@v3
116+
with:
117+
name: Test Results ${{ matrix.java }}
118+
path: target/surefire-reports/
119+
- name: Upload Test Report ${{ matrix.java }}
120+
if: ${{ always() }}
121+
uses: actions/upload-artifact@v3
122+
with:
123+
name: Test Report ${{ matrix.java }}
124+
path: target/site/
125+
- name: Package Jar ${{ matrix.java }}
126+
run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true
127+
- name: Upload Package Results ${{ matrix.java }}
128+
if: ${{ always() }}
129+
uses: actions/upload-artifact@v3
130+
with:
131+
name: Package Jar ${{ matrix.java }}
132+
path: target/*.jar
133+
134+
build-17:
135+
runs-on: ubuntu-latest
136+
strategy:
137+
fail-fast: false
138+
max-parallel: 1
139+
matrix:
140+
# build against supported Java LTS versions:
141+
java: [ 17 ]
142+
name: Java ${{ matrix.java }}
143+
steps:
144+
- uses: actions/checkout@v3
145+
- name: Set up JDK ${{ matrix.java }}
146+
uses: actions/setup-java@v3
147+
with:
148+
distribution: 'temurin'
149+
java-version: ${{ matrix.java }}
150+
cache: 'maven'
151+
- name: Compile Java ${{ matrix.java }}
152+
run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true
153+
- name: Run Tests ${{ matrix.java }}
154+
run: |
155+
mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
156+
- name: Build Test Report ${{ matrix.java }}
157+
if: ${{ always() }}
158+
run: |
159+
mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
160+
mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
161+
- name: Upload Test Results ${{ matrix.java }}
162+
if: ${{ always() }}
163+
uses: actions/upload-artifact@v3
164+
with:
165+
name: Test Results ${{ matrix.java }}
166+
path: target/surefire-reports/
167+
- name: Upload Test Report ${{ matrix.java }}
168+
if: ${{ always() }}
169+
uses: actions/upload-artifact@v3
170+
with:
171+
name: Test Report ${{ matrix.java }}
172+
path: target/site/
173+
- name: Package Jar ${{ matrix.java }}
174+
run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true
175+
- name: Upload Package Results ${{ matrix.java }}
176+
if: ${{ always() }}
177+
uses: actions/upload-artifact@v3
178+
with:
179+
name: Package Jar ${{ matrix.java }}
180+
path: target/*.jar
181+
182+
build-21:
38183
runs-on: ubuntu-latest
39184
strategy:
40185
fail-fast: false
41-
max-parallel: 2
186+
max-parallel: 1
42187
matrix:
43188
# build against supported Java LTS versions:
44-
java: [ 8, 11, 17, 21 ]
189+
java: [ 21 ]
45190
name: Java ${{ matrix.java }}
46191
steps:
47192
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)