Instant Liquibase Workflows with GitHub Actions

Originally published at: Instant Liquibase Workflows with GitHub Actions | Liquibase.com

When you’re learning or evaluating new software, it’s not always easy or possible to install the software locally on your laptop.

One way to address the problem is to have a remote host that will run the software for you. But even then you still have to go through the installation process. Installation may involve installing other tools that the software depends on to run correctly.

GitHub Actions for Liquibase

Here’s an even better way to address the problem: GitHub Actions. You can set the type of VM instance you would like to run and the actions you would like to do during a job in a workflow.

To make things super easy, I created a Liquibase GitHub Actions repository with some workflows already setup and ready to go for you. All you need to do is follow the instructions in the README file.

This repository contains Liquibase projects and an H2 database with GitHub Actions Workflow demonstrations for the following setups:

  1. Liquibase Command Line Interface (CLI)
  2. Liquibase Maven commands with a Springboot app
  3. Liquibase Gradle commands
  4. Liquibase running in Docker

Even better, this repository can be forked. Once forked, you can easily get started by running the different workflows for your specific use case.

You can simply run a workflow containing jobs with Liquibase command line (CLI) commands or you can run a more complex workflow containing jobs with Liquibase commands with automation tools like Docker, Maven, or Gradle that are already preconfigured for you!

All the necessary files to run the job are already in the repository. If you need to add/change a changeLog or edit the liquibase.properties file, just modify them in the repository and commit your changes! It’s that easy and you don’t have to install anything locally. 

I hope you enjoy using it. I’ll be adding more workflows in the future. You can let me know which other workflows you’d like to see by starting a conversation in the Liquibase community forum or on Discord chat