66 branches :
77 - development
88 - master
9+ workflow_dispatch :
910
1011env :
1112 MODULE_ID : swagger-sdk
@@ -16,47 +17,86 @@ jobs:
1617 # ############################################
1718 tests :
1819 name : Tests
19- runs-on : ubuntu-20.04
20+ runs-on : ubuntu-24.04
21+ continue-on-error : ${{ matrix.experimental }}
2022 strategy :
2123 fail-fast : false
2224 matrix :
23- cfengine : [ "lucee@5", "adobe@2018", "adobe@2021" ]
25+ cfengine : [ "lucee@5", "lucee@6", "adobe@2021", "adobe@2023", "adobe@2025", "boxlang-cfml@1" ]
26+ coldboxVersion : [ "^7.0.0", "^8.0.0" ]
27+ experimental : [ false ]
28+ include :
29+ - coldboxVersion : " ^8.0.0"
30+ cfengine : " boxlang@1"
31+ experimental : false
32+ - coldboxVersion : " be"
33+ cfengine : " lucee@5"
34+ experimental : true
35+ - coldboxVersion : " be"
36+ cfengine : " lucee@6"
37+ experimental : true
38+ - coldboxVersion : " be"
39+ cfengine : " lucee@be"
40+ experimental : true
41+ - coldboxVersion : " be"
42+ cfengine : " adobe@2021"
43+ experimental : true
44+ - coldboxVersion : " be"
45+ cfengine : " adobe@2023"
46+ experimental : true
47+ - coldboxVersion : " be"
48+ cfengine : " adobe@2025"
49+ experimental : true
50+ - coldboxVersion : " be"
51+ cfengine : " adobe@be"
52+ experimental : true
53+ - coldboxVersion : " be"
54+ cfengine : " boxlang@1"
55+ experimental : true
56+ - coldboxVersion : " be"
57+ cfengine : " boxlang@be"
58+ experimental : true
59+ - coldboxVersion : " be"
60+ cfengine : " boxlang-cfml@1"
61+ experimental : true
62+ - coldboxVersion : " be"
63+ cfengine : " boxlang-cfml@be"
64+ experimental : true
2465 steps :
2566 - name : Checkout Repository
26- uses : actions/checkout@v2
67+ uses : actions/checkout@v5
2768
2869 - name : Setup Java
29- uses : actions/setup-java@v2
70+ uses : actions/setup-java@v5
3071 with :
31- distribution : " adopt "
32- java-version : " 11 "
72+ distribution : " temurin "
73+ java-version : 21
3374
3475 - name : Cache CommandBox Dependencies
35- uses : actions/cache@v1
76+ uses : actions/cache@v4
3677 if : ${{ true }}
3778 with :
3879 path : ~/.CommandBox/artifacts
3980 key : ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
4081 restore-keys : |
4182 ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
4283
43- - name : Setup CommandBox
44- 84+ - name : Setup CommandBox CLI
85+ uses :
Ortus-Solutions/[email protected] 86+ with :
87+ install : commandbox-boxlang
4588
46- - name : Install Test Harness Dependencies
47- working-directory : ./test-harness
89+ - name : Install Test Harness with ColdBox ${{ matrix.coldboxVersion }}
4890 run : |
4991 box install
92+ cd test-harness
93+ box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
94+ box install
5095
5196 - name : Start ${{ matrix.cfengine }} Server
52- working-directory : ./test-harness
5397 run : |
5498 echo "matrix.cfengine=${{ matrix.cfengine }}" > ./.env
5599 box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
56- # Install Adobe 2021 cfpm modules
57- if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
58- box run-script install:2021
59- fi
60100 curl http://127.0.0.1:60299
61101
62102 - name : Run Tests
@@ -67,17 +107,17 @@ jobs:
67107 box testbox run --verbose outputFile=tests/results/test-results outputFormats=json,antjunit
68108
69109 - name : Publish Test Results
70- uses : EnricoMi/publish-unit-test-result-action@v1
110+ uses : EnricoMi/publish-unit-test-result-action@v2
71111 if : always()
72112 with :
73113 files : test-harness/tests/results/**/*.xml
74114 check_name : " ${{ matrix.cfengine }} Test Results"
75115
76116 - name : Upload Test Results Artifacts
77117 if : always()
78- uses : actions/upload-artifact@v2
118+ uses : actions/upload-artifact@v4
79119 with :
80- name : test-results-${{ matrix.cfengine }}
120+ name : test-results-${{ matrix.cfengine }}-${{ matrix.coldboxVersion }}-${{ matrix.experimental }}
81121 path : |
82122 test-harness/tests/results/**/*
83123
@@ -101,7 +141,7 @@ jobs:
101141
102142 - name : Upload Debugging Info To Artifacts
103143 if : ${{ failure() }}
104- uses : actions/upload-artifact@v2
144+ uses : actions/upload-artifact@v4
105145 with :
106146 name : Failure Debugging Info - ${{ matrix.cfengine }}
107147 path : |
@@ -114,39 +154,40 @@ jobs:
114154 build :
115155 name : Build & Publish
116156 needs : tests
117- runs-on : ubuntu-20.04
157+ runs-on : ubuntu-latest
118158 steps :
119159 - name : Checkout Repository
120- uses : actions/checkout@v2
160+ uses : actions/checkout@v5
121161 with :
122162 fetch-depth : 0
123163
124164 - name : Setup Java
125- uses : actions/setup-java@v2
165+ uses : actions/setup-java@v5
126166 with :
127- distribution : " adopt "
167+ distribution : " temurin "
128168 java-version : " 11"
129169
130170 - name : Cache CommandBox Dependencies
131- uses : actions/cache@v1
171+ uses : actions/cache@v4
132172 if : ${{ true }}
133173 with :
134174 path : ~/.CommandBox/artifacts
135175 key : ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
136176 restore-keys : |
137177 ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
138178
139- - name : Setup CommandBox
140- uses : elpete /setup-commandbox@v1 .0.0
179+ - name : Setup CommandBox CLI
180+ uses : Ortus-Solutions /setup-commandbox@v2 .0.1
141181 with :
142182 forgeboxAPIKey : ${{ secrets.FORGEBOX_TOKEN }}
183+ install : commandbox-docbox
143184
144185 - name : Setup Environment Variables For Build Process
145186 id : current_version
146187 run : |
147188 echo "VERSION=`cat box.json | jq '.version' -r`" >> $GITHUB_ENV
148189149- # master or snapshot
190+ # master or snapshotgit
150191 echo "Github Ref is $GITHUB_REF"
151192 echo "BRANCH=master" >> $GITHUB_ENV
152193 if [ $GITHUB_REF == 'refs/heads/development' ]
@@ -156,12 +197,11 @@ jobs:
156197
157198 - name : Build ${{ env.MODULE_ID }}
158199 run : |
159- box install commandbox-docbox
160200 box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
161201
162202 - name : Upload Build Artifacts
163203 if : success()
164- uses : actions/upload-artifact@v2
204+ uses : actions/upload-artifact@v4
165205 with :
166206 name : ${{ env.MODULE_ID }}
167207 path : |
0 commit comments