You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
surrealdb-migrations
v0.1.0
This GitHub Action installs and runs surrealdb-migrations. It is used to apply migrations on a SurrealDB instance.
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"
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.
Inspired by rust-tarpaulin GitHub Action.