Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 2.55 KB

README.md

File metadata and controls

65 lines (43 loc) · 2.55 KB

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