https://github.com/michaelborn/cfmigrations-action
Build an automated migration check using CommandBox-Migrations
https://github.com/michaelborn/cfmigrations-action
Last synced: 4 months ago
JSON representation
Build an automated migration check using CommandBox-Migrations
- Host: GitHub
- URL: https://github.com/michaelborn/cfmigrations-action
- Owner: michaelborn
- License: mit
- Created: 2021-11-30T15:23:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-30T15:24:51.000Z (over 4 years ago)
- Last Synced: 2025-03-02T23:30:33.355Z (over 1 year ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CFMigrations Github Action
Build an automated migration check using [`commandbox-migrations`](https://www.forgebox.io/view/commandbox-migrations).
## Usage
```yml
- uses: actions/checkout@v2
- name: Run CommandBox-Migrations
uses: Ortus-Solutions/cfmigrations-action@v1
with:
cmd: migrate up
```
## Arguments
* `cmd` - Migration command to run.
## Full Workflow Example
Use this as an example of a working `migrationCheck.yml`.
**Highlights:**
1. This workflow will run on pushes to the `main` branch.
2. The workflow starts a mariadb service
3. and runs `migrate up`/`migrate down`
```yml
name: CFMigrations Check
on:
push:
branches:
- main
jobs:
migrate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Ortus-Solutions/cfmigrations-action@v1
with:
cmd: migrate up
- uses: Ortus-Solutions/cfmigrations-action@v1
with:
cmd: migrate down
```
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)
## Code of Conduct
> :book: Do unto others as you would have them do to you - [Matthew 7:12](https://www.biblegateway.com/passage/?search=matthew+7%3A12&version=NIV)