@@ -395,22 +395,45 @@ jobs:
395395 lucee-express/lucee-server/context/logs/
396396
397397 test-config-override :
398- name : Test - Config override + reflection hot-reinstall
398+ name : Test - Config override + reflection hot-reinstall (Lucee ${{ matrix.lucee }})
399399 runs-on : ubuntu-latest
400- needs : [build-extension]
400+ needs : [setup, build-extension]
401401 env :
402402 LUCEE_LOGGING_FORCE_APPENDER : console
403403 LUCEE_LOGGING_FORCE_LEVEL : info
404404 LUCEE_WEBSOCKET_CONFIG : /tmp/ws-alt-config.json
405405 LUCEE_ADMIN_PASSWORD : testadmin
406+ strategy :
407+ fail-fast : false
408+ matrix :
409+ lucee : ${{ fromJSON(needs.setup.outputs.lucee-matrix) }}
406410 steps :
407411 - name : Checkout
408412 uses : actions/checkout@v6
409413
410- - name : Set up JDK 21
414+ - name : Determine Tomcat and Java version
415+ id : config
416+ run : |
417+ MAJOR_MINOR=$(echo "${{ matrix.lucee }}" | grep -oE '^[0-9]+\.[0-9]+')
418+ case "$MAJOR_MINOR" in
419+ 6.2)
420+ echo "tomcat=tomcat-9" >> $GITHUB_OUTPUT
421+ echo "java=11" >> $GITHUB_OUTPUT
422+ ;;
423+ 7.0|7.1)
424+ echo "tomcat=tomcat-11" >> $GITHUB_OUTPUT
425+ echo "java=21" >> $GITHUB_OUTPUT
426+ ;;
427+ *)
428+ echo "ERROR: Unknown Lucee major version: $MAJOR_MINOR"
429+ exit 1
430+ ;;
431+ esac
432+
433+ - name : Set up JDK ${{ steps.config.outputs.java }}
411434 uses : actions/setup-java@v5
412435 with :
413- java-version : ' 21 '
436+ java-version : ' ${{ steps.config.outputs.java }} '
414437 distribution : ' temurin'
415438
416439 - name : Download extension
@@ -419,16 +442,17 @@ jobs:
419442 name : extension-lex
420443 path : extension
421444
422- - name : Download Lucee Express template (tomcat-11)
445+ - name : Download Lucee Express template
423446 run : |
424- EXPRESS_URL=$(curl -s https://update.lucee.org/rest/update/provider/expressTemplates | jq -r '.["tomcat-11"]')
447+ EXPRESS_URL=$(curl -s https://update.lucee.org/rest/update/provider/expressTemplates | jq -r '.["${{ steps.config.outputs.tomcat }}"]')
448+ echo "Downloading Express template from: $EXPRESS_URL"
425449 curl -L -o express-template.zip "$EXPRESS_URL"
426450 unzip -q express-template.zip -d lucee-express
427451
428- - name : Download Lucee JAR (7.0 snapshot)
452+ - name : Download Lucee JAR
429453 id : lucee-jar
430454 run : |
431- LUCEE_URL=$(curl -s "https://update.lucee.org/rest/update/provider/latest/7.0/snapshot/jar /url" | tr -d '"')
455+ LUCEE_URL=$(curl -s "https://update.lucee.org/rest/update/provider/latest/${{ matrix.lucee }} /url" | tr -d '"')
432456 LUCEE_VERSION=$(basename "$LUCEE_URL" | sed 's/lucee-//;s/\.jar//')
433457 echo "LUCEE_VERSION=$LUCEE_VERSION" >> $GITHUB_OUTPUT
434458 curl -L -f -o lucee.jar "$LUCEE_URL"
0 commit comments