Skip to content

Commit

Permalink
add boxlang to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
otisnado committed Dec 12, 2024
1 parent 9af7de1 commit 39fdf13
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .cfconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"adminPassword" : "coldbox",
"debuggingEnabled":true,
"debuggingReportExecutionTimes":false,
"disableInternalCFJavaComponents":false,
"inspectTemplate":"always",
"requestTimeout":"0,0,0,90",
"robustExceptionEnabled":true,
"datasources": {
}
}
30 changes: 19 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ jobs:
env:
DB_USER: root
DB_PASSWORD: root
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021" ]
coldboxVersion: [ "^6.0.0", "^7.0.0" ]
experimental: [ false ]
include:
- cfengine: "boxlang@1"
coldboxVersion: "be"
experimental: true
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand All @@ -30,7 +37,7 @@ jobs:
# mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < tests/resources/coolblog.sql

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: "11"
Expand All @@ -55,7 +62,7 @@ jobs:
# printf "DB_BUNDLENAME=com.mysql.cj\n" >> .env

- name: Cache CommandBox Dependencies
uses: actions/cache@v1
uses: actions/cache@v4
if: ${{ true }}
with:
path: ~/.CommandBox/artifacts
Expand All @@ -64,10 +71,11 @@ jobs:
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'box.json' ) }}
- name: Install Test Harness Dependencies
run: |
box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
box install
- name: Start ${{ matrix.cfengine }} Server
run: |
box server start cfengine=${{ matrix.cfengine }} --noSaveSettings --debug
box server start cfengine=server-${{ matrix.cfengine }}.json --noSaveSettings --debug
# Install Adobe 2021 cfpm modules
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
box run-script install:2021
Expand All @@ -78,17 +86,17 @@ jobs:
mkdir -p tests/results
box testbox run --verbose outputFile=tests/results/test-results outputFormats=json,antjunit
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: tests/results/**/*.xml
check_name: "${{ matrix.cfengine }} Test Results"
junit_files: tests/results/**/*.xml
check_name: "${{ matrix.cfengine }} ColdBox ${{ matrix.coldboxVersion }} Test Results"

- name: Upload Test Results to Artifacts
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.cfengine }}
name: test-results-${{ matrix.cfengine }}-${{ matrix.coldboxVersion }}
path: |
tests/results/**/*
- name: Show Server Log On Failures
Expand All @@ -97,9 +105,9 @@ jobs:
box server log serverConfigFile="server-${{ matrix.cfengine }}.json"
- name: Upload Debug Logs To Artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Failure Debugging Info - ${{ matrix.cfengine }}
name: Failure Debugging Info - ${{ matrix.cfengine }} - ${{ matrix.coldboxVersion }}
path: |
.engine/**/logs/*
.engine/**/WEB-INF/cfusion/logs/*
Expand All @@ -112,6 +120,6 @@ jobs:
SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
SLACK_ICON_EMOJI: ":bell:"
SLACK_MESSAGE: '${{ github.repository }} tests failed :cry:'
SLACK_TITLE: ${{ github.repository }} Tests For ${{ matrix.cfengine }} failed
SLACK_TITLE: ${{ github.repository }} Tests For ${{ matrix.cfengine }} with ColdBox ${{ matrix.coldboxVersion }} failed
SLACK_USERNAME: CI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ component mixins="/cbyaml/helpers" {

}
```

## System requirements

* [Boxlang](https://www.boxlang.io)
* Adobe 2018+
* Lucee 5
26 changes: 26 additions & 0 deletions server-adobe@2018.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name":"cbyaml-adobe@2018",
"app":{
"serverHomeDirectory":".engine/adobe2018",
"cfengine":"adobe@2018"
},
"web":{
"http":{
"port":"60299"
},
"rewrites":{
"enable":"true"
},
"webroot":"./",
"aliases":{
"/moduleroot/cbyaml":"./"
}
},
"jvm":{
"heapSize":"1024"
},
"openBrowser":"false",
"cfconfig":{
"file":".cfconfig.json"
}
}
26 changes: 26 additions & 0 deletions server-adobe@2021.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name":"cbyaml-adobe@2021",
"app":{
"serverHomeDirectory":".engine/adobe2021",
"cfengine":"adobe@2021"
},
"web":{
"http":{
"port":"60299"
},
"rewrites":{
"enable":"true"
},
"webroot":"./",
"aliases":{
"/moduleroot/cbyaml":"./"
}
},
"jvm":{
"heapSize":"1024"
},
"openBrowser":"false",
"cfconfig":{
"file":".cfconfig.json"
}
}
36 changes: 36 additions & 0 deletions server-boxlang@1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"app":{
"cfengine":"boxlang@be",
"serverHomeDirectory":".engine/boxlang"
},
"name":"cbyaml-boxlang@1",
"force":true,
"openBrowser":false,
"web":{
"directoryBrowsing":true,
"http":{
"port":"60299"
},
"rewrites":{
"enable":"true"
},
"webroot":"./",
"aliases":{
"/moduleroot/cbyaml":"./"
}
},
"JVM":{
"heapSize":"1024",
"javaVersion":"openjdk21_jdk",
"args":"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999"
},
"cfconfig":{
"file":".cfconfig.json"
},
"env":{
"BOXLANG_DEBUG":true
},
"scripts":{
"onServerInitialInstall":"install bx-mail,bx-mysql,bx-derby,bx-compat-cfml@be,bx-unsafe-evaluate,bx-esapi --noSave"
}
}
26 changes: 26 additions & 0 deletions server-lucee@5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name":"cbyaml-lucee@5",
"app":{
"serverHomeDirectory":".engine/lucee5",
"cfengine":"lucee@5"
},
"web":{
"http":{
"port":"60299"
},
"rewrites":{
"enable":"true"
},
"webroot":"./",
"aliases":{
"/moduleroot/cbyaml":"./"
}
},
"jvm":{
"heapSize":"1024"
},
"openBrowser":"false",
"cfconfig":{
"file":".cfconfig.json"
}
}

0 comments on commit 39fdf13

Please sign in to comment.