Skip to content

Commit

Permalink
chore(CI): Boxlang in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete authored Sep 27, 2024
1 parent 8a84363 commit ae46072
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
cfengine: ["lucee@5", "adobe@2018", "adobe@2021", "adobe@2023"]
cfengine: ["lucee@5", "adobe@2018", "adobe@2021", "adobe@2023", "boxlang@be"]
coldbox: ["coldbox@6", "coldbox@7"]
steps:
- name: Checkout Repository
Expand All @@ -31,7 +31,12 @@ jobs:
box install ${{ matrix.coldbox }} --noSave
- name: Start server
run: box server start cfengine=${{ matrix.cfengine }} --noSaveSettings
run: |
box server start cfengine=${{ matrix.cfengine }} --noSaveSettings
if [[ "${{ matrix.cfengine }}" == *"boxlang"* ]] ; then
box run-script bx-modules:install
box server restart
fi
- name: Run TestBox Tests
run: box testbox run
5 changes: 3 additions & 2 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"globber":"^3.1.5"
},
"devDependencies":{
"testbox":"^5.0.0",
"testbox":"^6.0.0",
"coldbox":"^7.0.0"
},
"installPaths":{
Expand All @@ -35,7 +35,8 @@
"scripts":{
"format":"cfformat run ModuleConfig.cfc,models/**/*.cfc,tests/specs/**/*.cfc,tests/resources/app/handlers/**/*.cfc,tests/resources/app/config/**/*.cfc --overwrite",
"format:check":"cfformat check ModuleConfig.cfc,models/**/*.cfc,tests/specs/**/*.cfc,tests/resources/app/handlers/**/*.cfc,tests/resources/app/config/**/*.cfc --verbose",
"format:watch":"cfformat watch ModuleConfig.cfc,models/**/*.cfc,tests/specs/**/*.cfc,tests/resources/app/handlers/**/*.cfc,tests/resources/app/config/**/*.cfc"
"format:watch":"cfformat watch ModuleConfig.cfc,models/**/*.cfc,tests/specs/**/*.cfc,tests/resources/app/handlers/**/*.cfc,tests/resources/app/config/**/*.cfc",
"bx-modules:install": "install bx-compat-cfml@be,bx-esapi"
},
"ignore":[
"**/.*",
Expand Down
4 changes: 4 additions & 0 deletions tests/specs/integration/AsyncSpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ component extends="tests.resources.ModuleIntegrationSpec" appMapping="/app" {
function run() {
describe( "async requests", function() {
it( "can send a request asynchronously", function() {
if ( isBoxLang() ) {
return skip( "Variadic parameters are not yet supported in BoxLang." );
}

var future = hyper.setUrl( "https://jsonplaceholder.typicode.com/posts/1" ).sendAsync();
expect( future ).toBeInstanceOf( "Future", "A Future object should have been returned." );
var res = future.get();
Expand Down
4 changes: 4 additions & 0 deletions tests/specs/integration/FileUploadsSpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ component extends="tests.resources.ModuleIntegrationSpec" appMapping="/app" {
} );

it( "can attach files", function() {
if ( isBoxLang() ) {
return skip( "File uploads work but have a bug that prevents it from passing on the first time." );
}

var res = hyper
.attach(
"smallPhoto",
Expand Down

0 comments on commit ae46072

Please sign in to comment.