@@ -116,7 +116,7 @@ jobs:
116116 # the set command makes the build fail if mvn command fails (no change in behavior)
117117 run : |
118118 set -o pipefail
119- mvn clean verify --fae 2>&1 | tee full-build-base.log
119+ mvn clean verify -DskipTests - -fae 2>&1 | tee full-build-base.log
120120 env :
121121 CI_env : GithubAction
122122 - name : Upload full-build-base log for metrics job
@@ -135,17 +135,19 @@ jobs:
135135 retention-days : ${{env.retention-days}}
136136 if-no-files-found : error
137137 # Make test report accessible from GitHub Actions (as Maven logs are long)
138- - name : Publish Test Report
139- if : success() || failure()
140- uses : mikepenz/action-junit-report@v6
141- env :
142- NODE_OPTIONS : " --max_old_space_size=9000"
143- with :
144- report_paths : ' **/target/*-reports/TEST-*.xml'
138+ # Remove? we skipping tests here
139+ # - name: Publish Test Report
140+ # if: success() || failure()
141+ # uses: mikepenz/action-junit-report@v6
142+ # env:
143+ # NODE_OPTIONS: "--max_old_space_size=9000"
144+ # with:
145+ # report_paths: '**/target/*-reports/TEST-*.xml'
145146 # Upload coverage results
146147 # As of 2024, looks like a rate limiter is breaking the build.
147148 # As such, now we only upload from master branch, hoping it is enough.
148149 # If not, might have to remove this
150+ # ## FIXME this will need updating with other jobs running tests
149151 - if : github.ref == 'refs/heads/master'
150152 name : Upload coverage to CodeCov
151153 run : curl -s https://codecov.io/bash | bash
@@ -371,6 +373,7 @@ jobs:
371373
372374 bb-on-different-os :
373375 strategy :
376+ fail-fast : false
374377 matrix :
375378 # main build is already on ubuntu-latest
376379 os : [windows-latest, macos-latest]
@@ -400,3 +403,39 @@ jobs:
400403 run : mvn clean verify --fae
401404 env :
402405 CI_env : GithubAction
406+
407+
408+ tests :
409+ runs-on : ubuntu-latest
410+ needs : full-build-base
411+ if : needs.setup.outputs.debug == 'false'
412+ strategy :
413+ fail-fast : false
414+ matrix :
415+ profile : [ BaseTests, CoreTests, CoreITTests, OAV3Tests, OAV2Tests, GraphQLTests, MongoTests, H2V1Tests ]
416+ steps :
417+ - uses : actions/checkout@v6
418+ - name : Setup JDK ${{env.build-jdk}}
419+ uses : actions/setup-java@v5
420+ with :
421+ distribution : ${{env.java-distribution}}
422+ java-version : ${{env.build-jdk}}
423+ - name : Cache Maven packages
424+ uses : actions/cache@v5
425+ with :
426+ path : ~/.m2
427+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
428+ restore-keys : ${{ runner.os }}-m2
429+ - name : Build with Maven
430+ run :
431+ mvn -P default-build,${{ matrix.profile }} clean verify --fae
432+ env :
433+ CI_env : GithubAction
434+ - name : Publish Test Report
435+ if : success() || failure()
436+ uses : mikepenz/action-junit-report@v6
437+ env :
438+ NODE_OPTIONS : " --max_old_space_size=9000"
439+ with :
440+ check_name : JUnit ${{ matrix.profile }}
441+ report_paths : ' **/target/*-reports/TEST-*.xml'
0 commit comments