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 10, 2024
1 parent 83f8d09 commit 087c0fd
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .cfconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"adminPassword" : "coldbox",
"componentCacheEnabled":false,
"postParametersLimit" : 200,
"robustExceptionEnabled":true,
"saveClassFiles":false,
"systemErr":"System",
"systemOut":"System",
"thistimezone":"UTC",
"whitespaceManagement":"white-space-pref",
"debuggingEnabled":true,
"debuggingReportExecutionTimes":false,
"disableInternalCFJavaComponents":false,
"inspectTemplate":"always",
"requestTimeout":"0,0,0,90",
"datasources":{
"twilio-sdk":{
"bundleName": "${DB_BUNDLENAME}",
"bundleVersion": "${DB_BUNDLEVERSION}",
"blob":"true",
"class":"${DB_CLASS}",
"clob":"true",
"connectionLimit":"100",
"connectionTimeout":"1",
"custom":"useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC&useLegacyDatetimeCode=true&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true",
"database":"twilio-sdk",
"dbdriver":"MySQL",
"dsn":"jdbc:mysql://{host}:{port}/{database}",
"host":"${DB_HOST:127.0.0.1}",
"metaCacheTimeout":"60000",
"password":"${DB_PASSWORD}",
"port": "${DB_PORT:3306}",
"storage":"false",
"username": "${DB_USER:root}",
"validate":"false"
}
}
}
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ jobs:
env:
DB_USER: root
DB_PASSWORD: root
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
cfengine: [ "lucee@5", "lucee@6", "adobe@2021", "adobe@2023" ]
coldboxVersion: [ "^6.0.0", "^7.0.0"]
experimental: [ false ]
include:
- coldboxVersion: "be"
cfengine: "boxlang@1"
experimental: true
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -73,6 +80,7 @@ jobs:
- name: Install Test Harness Dependencies
run: |
box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
box install
- name: Start ${{ matrix.cfengine }} Server
Expand All @@ -82,12 +90,12 @@ jobs:
TWILIO_TEST_ACCOUNT_SID: ${{ secrets.TWILIO_TEST_ACCOUNT_SID }}
TWILIO_TEST_AUTHTOKEN: ${{ secrets.TWILIO_TEST_AUTHTOKEN }}
run: |
box server start cfengine=${{ matrix.cfengine }} port=49619 --noSaveSettings --debug
box server start serverConfigFile=server-${{ matrix.cfengine }} --noSaveSettings --debug
# Install Adobe 2021 cfpm modules
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
box run-script install:2021
fi
curl http://127.0.0.1:49619
curl http://127.0.0.1:60299
- name: Run Tests
env:
Expand Down
36 changes: 36 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"app":{
"cfengine":"boxlang@be",
"serverHomeDirectory":".engine/boxlang"
},
"name":"twilio-sdk-boxlang@1",
"force":true,
"openBrowser":false,
"web":{
"directoryBrowsing":true,
"http":{
"port":"60299"
},
"rewrites":{
"enable":true
},
"webroot":".",
"aliases":{
"/moduleroot/twilio-sdk":"./"
}
},
"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"
}
}
10 changes: 10 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"web":{
"http":{
"port":"60299"
}
},
"app":{
"cfengine":"lucee@5"
}
}

0 comments on commit 087c0fd

Please sign in to comment.