GitHub Actions
Run BoxLang in your GitHub Actions seamlessly with the official setup action.
🚀 Automate your BoxLang setup - This GitHub Action sets up the BoxLang Dynamic JVM Language runtime for CI/CD workflows with optional CommandBox CLI and module installation.
⌨️ Action Inputs
Configure your BoxLang setup using these input parameters:
version
semver
latest
The BoxLang version to install, if not passed we use the latest stable.
modules
string
---
If added, a space-delimited list of modules to install upon installation of the binary for you.
with-commandbox
boolean
false
If true, it will install the latest CommandBox as well.
commandbox_version
string
latest
The CommandBox version to install. Only used if with-commandbox is true.
commandbox_modules
string
---
If added, a comma-delimited list of CommandBox packages to install. Only used if with-commandbox is true.
forgeboxAPIKey
string
---
If added, it will configure the ForgeBox API Key in CommandBox. Only used if with-commandbox is true.
🔳 Usage Examples
Simple Setup
📦 With BoxLang Modules
🎯 Specific Version
📦 With CommandBox
🔧 CommandBox with Specific Version
🛠️ CommandBox with Modules
⚙️ Full Configuration Example
🔑 With ForgeBox API Key
🎯 Specific Version with Modules
📦 Action Outputs
This action provides the following outputs for use in subsequent workflow steps:
boxlang-version: The version of BoxLang that was installedinstallation-path: The path where BoxLang was installed
🔧 Complete CI/CD Examples
Quick Start Example
Web Application Testing
Module Development Workflow
Multi-Platform Testing
Enterprise CommandBox Deployment
🔍 System Requirements
The action automatically installs required dependencies:
Java Runtime: OpenJDK 21 (or equivalent JRE)
System packages: curl, unzip, and other utilities as needed
BoxLang Runtime: Complete BoxLang installation
CommandBox (optional): When
with-commandbox: true
Automatic Dependency Management: The action handles all system requirements automatically. No manual Java or system package installation needed!
📦 Popular Module Combinations
Web Development Stack
API Development
Data Processing Pipeline
Enterprise Integration
🐛 Troubleshooting
Common Issues
Action fails with Java not found:
The action automatically installs OpenJDK 21. If you see Java errors, try updating to the latest action version.
Module installation timeout:
Large modules may take time to install. Consider caching or installing only necessary modules.
Permission errors on Windows:
Ensure your workflow has proper permissions set for the Windows runner.
Debug Mode
Enable debug output for troubleshooting:
Last updated
Was this helpful?
