Skip to content

Commit

Permalink
Update bad-cfconfig.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 3, 2024
1 parent 17b3bc0 commit eae65d8
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/bad-cfconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,31 @@ jobs:
with:
path: /home/runner/work/_actions/lucee/script-runner/main/lucee-download-cache
key: lucee-downloads
- name: Check good .CFConfig.json

- 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 }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-good.json5

- 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

- name: Check bad .CFConfig with unknown extension version LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
Expand All @@ -56,6 +73,7 @@ jobs:
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()
Expand All @@ -65,6 +83,7 @@ jobs:
luceeVersionQuery: ${{ matrix.luceeVersion }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-bad-comment.json5

- name: Check bad .CFConfig missing file LUCEE_BASE_CONFIG
uses: lucee/script-runner@main
if: always()
Expand All @@ -74,6 +93,7 @@ jobs:
luceeVersionQuery: ${{ matrix.luceeVersion }}
env:
LUCEE_BASE_CONFIG: ${{ github.workspace }}/custom/bad-cfconfig/.CFConfig-404.json5

- name: Copy .CFConfig-bad-extension.json5 into context
if: always()
run: |
Expand Down

0 comments on commit eae65d8

Please sign in to comment.