-
Notifications
You must be signed in to change notification settings - Fork 0
195 lines (181 loc) · 8.16 KB
/
bad-cfconfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
name: Check Bad .CFConfigs
on:
workflow_dispatch:
workflow_call:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
luceeVersion:
[
5.4/snapshot/jar,
6.0/snapshot/jar,
6.1/snapshot/jar,
6.1.0/snapshot/jar,
6.2/snapshot/jar,
]
javaVersion: [ 11 ]
env:
luceeVersionQuery: ${{ matrix.luceeVersion }}
compile: ${{ github.event.inputs.compile }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK ${{matrix.javaVersion}}
uses: actions/setup-java@v4
with:
java-version: ${{matrix.javaVersion}}
distribution: "temurin"
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: maven-cache
- name: Cache Lucee files
uses: actions/cache@v4
if: always()
with:
path: /home/runner/work/_actions/lucee/script-runner/main/lucee-download-cache
key: lucee-downloads
- name: Check good .CFConfig.json LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
compile: true
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-good.json5
check_extensions: B737ABC4-D43F-4D91-8E8E973E37C40D1B:2.0.0.26
- name: Copy .CFConfig-good.json5 into context
if: always()
run: |
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-good.json5 /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/.CFConfig.json
- name: Check good .CFConfig.json (via context)
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
preCleanup: false
env:
check_extensions: B737ABC4-D43F-4D91-8E8E973E37C40D1B:2.0.0.26
- name: Check good .CFConfig with newer image extension LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-newer-extension.json5
check_extensions: B737ABC4-D43F-4D91-8E8E973E37C40D1B:2.0.0.28-SNAPSHOT
- name: Copy .CFConfig-newer-extension.json5 into context
if: always()
run: |
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-newer-extension.json5 /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/.CFConfig.json
- name: Check good .CFConfig with newer image extension ( via context )
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
preCleanup: false
env:
check_extensions: B737ABC4-D43F-4D91-8E8E973E37C40D1B:2.0.0.28-SNAPSHOT
- name: Copy .CFConfig-newer-extension.json5 into /deploy
if: always()
run: |
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/deploy/
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-newer-extension.json5 /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/deploy/.CFConfig.json
- name: Check good .CFConfig with newer image extension ( via /deploy )
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
preCleanup: false
env:
check_extensions: B737ABC4-D43F-4D91-8E8E973E37C40D1B:2.0.0.28-SNAPSHOT
check_extensions_since: 6.1.1
- name: Copy .CFConfig-empty-cacheHandlers.json5 into /deploy
if: always()
run: |
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/deploy/
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-empty-cacheHandlers.json /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/deploy/.CFConfig.json
- name: Check .CFConfig with empty cacheHandlers ( via /deploy )
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
preCleanup: false
env:
expect_empty_config: cacheHandlers
- name: Check bad .CFConfig with unknown extension version LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-bad-extension.json5
- name: Check bad .CFConfig with invalid json5? due to a comment LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-bad-comment.json5
check_extensions: -D46B46A9-A0E3-44E1-D972A04AC3A8DC10:1.0.19.25
- name: Check bad .CFConfig missing file LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-404.json5
- name: Copy .CFConfig-bad-extension.json5 into context (s3 ext)
if: always()
run: |
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-bad-extension.json5 /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/.CFConfig.json
- name: Check bad .CFConfig with wrong version number for bundled s3 extension (via context)
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
preCleanup: false
env:
check_extensions: -17AB52DE-B300-A94B-E058BD978511E39E:0.0.404.404
- name: Copy .CFConfig-bad-extension.json5 into context (chart ext)
if: always()
run: |
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-bad-extension-404.json5 /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/.CFConfig.json
- name: Check bad .CFConfig with wrong version number for unbundled chart extension (via context)
uses: lucee/script-runner@main
if: always()
with:
webroot: ${{ github.workspace }}/custom/bad-cfconfig
execute: /debug.cfm
luceeVersionQuery: ${{ matrix.luceeVersion }}
preCleanup: false
env:
check_extensions: -D46B46A9-A0E3-44E1-D972A04AC3A8DC10:0.0.404.404