Skip to content

Commit 57eba55

Browse files
committed
add test for updating mappings
1 parent bee8e0a commit 57eba55

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/bad-cfconfig.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ jobs:
132132
env:
133133
check_extensions: B737ABC4-D43F-4D91-8E8E973E37C40D1B:2.0.0.28-SNAPSHOT
134134
check_extensions_since: 6.1.1
135+
- name: Copy .CFConfig-newer-mappings.json5 into /deploy
136+
if: always()
137+
run: |
138+
mkdir -p /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/deploy/
139+
cp -a ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-newer-mappings.json5 /home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/deploy/.CFConfig.json
140+
- name: Check .CFConfig with newer mappings via snippet ( via /deploy )
141+
uses: lucee/script-runner@main
142+
if: always()
143+
with:
144+
webroot: ${{ github.workspace }}/custom/bad-cfconfig
145+
execute: /debug.cfm
146+
luceeVersionQuery: ${{ matrix.luceeVersion }}
147+
preCleanup: false
135148

136149
- name: Copy .CFConfig-empty-cacheHandlers.json5 into /deploy
137150
if: always()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"mappings": {
3+
"/contenscms": {
4+
"physical": "/var/www/contens",
5+
"primary": "physical",
6+
"topLevel": "true",
7+
"readOnly": "false"
8+
},
9+
"/cmf": {
10+
"physical": "/var/www/cmf",
11+
"primary": "physical",
12+
"topLevel": "true",
13+
"readOnly": "false"
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)