@@ -14,10 +14,17 @@ jobs:
1414 env :
1515 DB_USER : root
1616 DB_PASSWORD : root
17+ continue-on-error : ${{ matrix.experimental }}
1718 strategy :
1819 fail-fast : false
1920 matrix :
2021 cfengine : [ "lucee@5", "adobe@2018", "adobe@2021" ]
22+ coldboxVersion : [ "^6.0.0", "^7.0.0" ]
23+ experimental : [ false ]
24+ include :
25+ - cfengine : " boxlang@1"
26+ coldboxVersion : " be"
27+ experimental : true
2128 steps :
2229 - name : Checkout Repository
2330 uses : actions/checkout@v2
5562 # printf "DB_BUNDLENAME=com.mysql.cj\n" >> .env
5663
5764 - name : Cache CommandBox Dependencies
58- uses : actions/cache@v1
65+ uses : actions/cache@v4
5966 if : ${{ true }}
6067 with :
6168 path : ~/.CommandBox/artifacts
6673 - name : Install Test Harness Dependencies
6774 run : |
6875 box install
69- cd test-harness && box install
76+ cd test-harness
77+ box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
78+ box install
7079
7180 - name : Start ${{ matrix.cfengine }} Server
7281 run : |
@@ -83,17 +92,17 @@ jobs:
8392 box testbox run --verbose outputFile=test-harness/tests/results/test-results outputFormats=json,antjunit
8493
8594 - name : Publish Test Results
86- uses : EnricoMi/publish-unit-test-result-action@v1
95+ uses : EnricoMi/publish-unit-test-result-action@v2
8796 if : always()
8897 with :
89- files : test-harness/tests/results/**/*.xml
90- check_name : " ${{ matrix.cfengine }} Test Results"
98+ junit_files : test-harness/tests/results/**/*.xml
99+ check_name : " ${{ matrix.cfengine }} ColdBox ${{ matrix.coldboxVersion }} Test Results"
91100
92101 - name : Upload Test Results to Artifacts
93102 if : always()
94- uses : actions/upload-artifact@v2
103+ uses : actions/upload-artifact@v4
95104 with :
96- name : test-results-${{ matrix.cfengine }}
105+ name : test-results-${{ matrix.cfengine }}-${{ matrix.coldboxVersion }}
97106 path : |
98107 test-harness/tests/results/**/*
99108
@@ -104,9 +113,9 @@ jobs:
104113
105114 - name : Upload Debug Logs To Artifacts
106115 if : ${{ failure() }}
107- uses : actions/upload-artifact@v2
116+ uses : actions/upload-artifact@v4
108117 with :
109- name : Failure Debugging Info - ${{ matrix.cfengine }}
118+ name : Failure Debugging Info - ${{ matrix.cfengine }} - ${{ matrix.coldboxVersion }}
110119 path : |
111120 .engine/**/logs/*
112121 .engine/**/WEB-INF/cfusion/logs/*
@@ -120,6 +129,6 @@ jobs:
120129 SLACK_COLOR : ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
121130 SLACK_ICON_EMOJI : " :bell:"
122131 SLACK_MESSAGE : ' ${{ github.repository }} tests failed :cry:'
123- SLACK_TITLE : ${{ github.repository }} Tests For ${{ matrix.cfengine }} failed
132+ SLACK_TITLE : ${{ github.repository }} Tests For ${{ matrix.cfengine }} with ColdBox ${{ matrix.coldboxVersion }} failed
124133 SLACK_USERNAME : CI
125134 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
0 commit comments