Skip to content

Ortus-Solutions/commandbox-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandBox Github Action

GitHub Marketplace

Run CommandBox commands in a standalone github action without installing CommandBox. Perfect for one-off commands such as install, docbox generate, cfformat, cflint, and task runners.

Note: This action is not suited for starting servers. Due to the nature of Github Actions, you must configure long-running background services in the workflow.

Usage

DocBox Usage

This example will run docbox generate and place the result in the docs/ directory.

steps:
- uses: Ortus-Solutions/commandbox-action@v1.0.3
  with:
    cmd: docbox generate mapping=cbWire excludes=test|ModuleConfig strategy-outputDir=docs strategy-projectTitle=cbWire

Box Install Usage

This example will install development dependencies listed in the box.json package file.

steps:
- uses: Ortus-Solutions/commandbox-action@v1.0.3
  with:
    cmd: install

CFLint Usage

This example will run cflint against all .cfc files in the models/ directory and fail the build if CFlint finds any issues of WARNING or ERROR level.

steps:
- uses: Ortus-Solutions/commandbox-action@v1.0.3
  with:
    cmd: cflint pattern=models/**.cfc exitOnError=true reportLevel=WARNING

CFFormat Usage

This example will run cfformat on the models, interceptors, and handlers directories.

steps:
- uses: Ortus-Solutions/commandbox-action@v1.0.3
  with:
    cmd: cfformat run models,handlers,interceptors,tests/specs --overwrite

Arguments

  • cmd - The CommandBox command to run. No need to specify box!

License

The scripts and documentation in this project are released under the MIT License

Code of Conduct

📖 Do unto others as you would have them do to you - Matthew 7:12