Build Status | Tests | Coverage |
---|---|---|
This action allows you to run a Cake script from your GitHub Actions workflow without having to use a bootstrapper.
Using the Cake action from a GitHub Actions workflow is as simple as referencing this repository from a build step:
steps:
- name: Run the Cake script
uses: ecampidoglio/cake-action@master
The Cake action will look for a script named build.cake
in your repository's root directory and run it for you using the Cake Tool. All output from the Cake script will be automatically redirected to the build log for inspection.
If your script is in another location, you can specify the path with the script-path
input parameter:
steps:
- name: Run the Cake script
uses: ecampidoglio/cake-action@master
with:
script-path: path/to/script.cake
You'll likely want to specify which task to run out of the ones defined in the Cake script. For that, you can use the target
parameter:
steps:
- name: Run the Cake script
uses: ecampidoglio/cake-action@master
with:
script-path: path/to/script.cake
target: Task-To-Run
And that's it. The rest of this document describes the other options that the Cake action supports.
Since the Cake Tool is built on .NET Core, this action will run on any of the virtual environments supported by GitHub Actions, namely Linux, Windows and macOS.