@@ -22,10 +22,17 @@ jobs:
22
22
env :
23
23
DB_USER : root
24
24
DB_PASSWORD : root
25
+ continue-on-error : ${{ matrix.experimental }}
25
26
strategy :
26
27
fail-fast : false
27
28
matrix :
28
29
cfengine : [ "lucee@5", "lucee@6", "adobe@2021", "adobe@2023" ]
30
+ coldboxVersion : [ "^6.0.0", "^7.0.0"]
31
+ experimental : [ false ]
32
+ include :
33
+ - coldboxVersion : " be"
34
+ cfengine : " boxlang@1"
35
+ experimental : true
29
36
steps :
30
37
- name : Checkout Repository
31
38
uses : actions/checkout@v2
73
80
74
81
- name : Install Test Harness Dependencies
75
82
run : |
83
+ box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
76
84
box install
77
85
78
86
- name : Start ${{ matrix.cfengine }} Server
@@ -82,12 +90,12 @@ jobs:
82
90
TWILIO_TEST_ACCOUNT_SID : ${{ secrets.TWILIO_TEST_ACCOUNT_SID }}
83
91
TWILIO_TEST_AUTHTOKEN : ${{ secrets.TWILIO_TEST_AUTHTOKEN }}
84
92
run : |
85
- box server start cfengine= ${{ matrix.cfengine }} port=49619 --noSaveSettings --debug
93
+ box server start serverConfigFile=server- ${{ matrix.cfengine }}.json --noSaveSettings --debug
86
94
# Install Adobe 2021 cfpm modules
87
95
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
88
96
box run-script install:2021
89
97
fi
90
- curl http://127.0.0.1:49619
98
+ curl http://127.0.0.1:60299
91
99
92
100
- name : Run Tests
93
101
env :
@@ -100,17 +108,17 @@ jobs:
100
108
box testbox run --verbose outputFile=tests/results/test-results outputFormats=json,antjunit
101
109
102
110
- name : Publish Test Results
103
- uses : EnricoMi/publish-unit-test-result-action@v1
111
+ uses : EnricoMi/publish-unit-test-result-action@v2
104
112
if : always()
105
113
with :
106
- files : tests/results/**/*.xml
107
- check_name : " ${{ matrix.cfengine }} Test Results"
114
+ junit_files : tests/results/**/*.xml
115
+ check_name : " ${{ matrix.cfengine }} ColdBox ${{ matrix.coldboxVersion }} Test Results"
108
116
109
117
- name : Upload Test Results to Artifacts
110
118
if : always()
111
- uses : actions/upload-artifact@v2
119
+ uses : actions/upload-artifact@v4.4.3
112
120
with :
113
- name : test-results-${{ matrix.cfengine }}
121
+ name : test-results-${{ matrix.cfengine }}-${{ matrix.coldboxVersion }}
114
122
path : |
115
123
tests/results/**/*
116
124
@@ -121,9 +129,9 @@ jobs:
121
129
122
130
- name : Upload Debug Logs To Artifacts
123
131
if : ${{ failure() }}
124
- uses : actions/upload-artifact@v2
132
+ uses : actions/upload-artifact@v4.4.3
125
133
with :
126
- name : Failure Debugging Info - ${{ matrix.cfengine }}
134
+ name : Failure Debugging Info - ${{ matrix.cfengine }} - ${{ matrix.coldboxVersion }}
127
135
path : |
128
136
.engine/**/logs/*
129
137
.engine/**/WEB-INF/cfusion/logs/*
@@ -137,6 +145,6 @@ jobs:
137
145
SLACK_COLOR : ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
138
146
SLACK_ICON_EMOJI : " :bell:"
139
147
SLACK_MESSAGE : ' ${{ github.repository }} tests failed :cry:'
140
- SLACK_TITLE : ${{ github.repository }} Tests For ${{ matrix.cfengine }} failed
148
+ SLACK_TITLE : ${{ github.repository }} Tests For ${{ matrix.cfengine }} with ColdBox ${{ matrix.coldboxVersion }} failed
141
149
SLACK_USERNAME : CI
142
150
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
0 commit comments