Skip to content

surrealdb-migrations

Actions
Apply migrations to a SurrealDB instance
v0.2.0
Latest
Star (7)

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: Apply migrations
        uses: Odonno/surrealdb-migrations-action@v0.2.0
        with:
          address: "wss://cloud.surrealdb.com"

Inputs

Name Required Description Type Default
version The version of surrealdb-migrations that will be installed. string latest
address Address of the surrealdb instance. string ws://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
skip-untracked-files When a schema changes is made, it should create a definition file when applying migrations.
If we detect untracked definition files, the CI will fail.
Set to true to skip untracked files.
boolean false

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

Credits

Inspired by rust-tarpaulin GitHub Action.

surrealdb-migrations is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Apply migrations to a SurrealDB instance
v0.2.0
Latest

surrealdb-migrations is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.