Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
arrow-up-circle

GitHub Action

surrealdb-migrations

v0.1.0

surrealdb-migrations

arrow-up-circle

surrealdb-migrations

Apply migrations to a SurrealDB instance

Installation

Copy and paste the following snippet into your .yml file.

              

- name: surrealdb-migrations

uses: Odonno/[email protected]

Learn more about this action in Odonno/surrealdb-migrations-action

Choose a version

surrealdb-migrations Action

MIT licensed

This GitHub Action installs and runs surrealdb-migrations. It is used to apply migrations on a SurrealDB instance.

Example workflow

on: [push]

name: build

jobs:
  check:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install stable toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          override: true

      - name: Apply migrations
        uses: Odonno/[email protected]
        with:
          url: "cloud.surrealdb.com"

Inputs

Name Required Description Type Default
version The version of surrealdb-migrations that will be installed. string latest
url Url of the surrealdb instance. string localhost:8000
ns Namespace to use inside the surrealdb instance. string test
db Name of the database to use inside the surrealdb instance. string test
username Username used to authenticate to the surrealdb instance. string root
password Password used to authenticate to the surrealdb instance. string root

Note that you can still make use of the .surrealdb configuration file in your project.

Credits

Inspired by rust-tarpaulin GitHub Action.