Skip to content

Commit b3e9ae7

Browse files
committed
consolidate jobs
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent 4d5c613 commit b3e9ae7

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/java-version-matrix-tests.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@ permissions: {}
1818

1919
jobs:
2020
integration-tests:
21-
name: Integration Tests (Java ${{ matrix.java-version }})
21+
name: Java ${{ matrix.java-version }}
2222
runs-on: ubuntu-24.04
2323
strategy:
2424
fail-fast: false
2525
matrix:
2626
java-version: [8, 11, 17, 21, 25]
27-
test-module:
28-
- it-exporter
29-
- it-pushgateway
3027
steps:
3128
- name: Check out
3229
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -50,22 +47,16 @@ jobs:
5047
- name: Build project artifacts
5148
run: mise exec -- ./mvnw install -DskipTests -Dspotless.check.skip=true -Dcoverage.skip=true -Dcheckstyle.skip=true -Dwarnings=-nowarn
5249

53-
- name: Run integration tests for ${{ matrix.test-module }}
50+
- name: Run exporter integration tests
5451
env:
5552
TEST_JAVA_VERSION: ${{ matrix.java-version }}
5653
run: |
57-
cd integration-tests/${{ matrix.test-module }}
54+
cd integration-tests/it-exporter
5855
mise exec -- ../../mvnw verify -Dspotless.check.skip=true -Dcoverage.skip=true -Dcheckstyle.skip=true -Dwarnings=-nowarn
5956
60-
summary:
61-
name: Matrix Test Summary
62-
runs-on: ubuntu-24.04
63-
needs: integration-tests
64-
if: always()
65-
steps:
66-
- name: Check matrix results
57+
- name: Run PushGateway integration tests
58+
env:
59+
TEST_JAVA_VERSION: ${{ matrix.java-version }}
6760
run: |
68-
if [ "${{ needs.integration-tests.result }}" == "failure" ]; then
69-
echo "::error::One or more Java version matrix tests failed"
70-
exit 1
71-
fi
61+
cd integration-tests/it-pushgateway
62+
mise exec -- ../../mvnw verify -Dspotless.check.skip=true -Dcoverage.skip=true -Dcheckstyle.skip=true -Dwarnings=-nowarn

0 commit comments

Comments
 (0)