Skip to content

Commit

Permalink
add fluentci.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 29, 2024
1 parent df4eb0f commit 05b35d4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .fluentci/fluentci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[[steps]]
name = "Setup Rust"
command = ["fluentci run --wasm rust setup"]

[[steps]]
name = "Run tests"
command = [
"fluentci run --wasm postgres start",
"curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash",
"cargo-binstall sqlx-cli -y",
"sqlx migrate run",
"cargo sqlx prepare",
"cargo test",
]
env = [
"POSTGRES_USER=postgres",
"POSTGRES_DB=demo",
"DATABASE_URL=postgres://postgres@localhost/demo",
]

[[steps]]
name = "Run build"
command = ["fluentci run --wasm rust build"]
env = ["DATABASE_URL=postgres://postgres@localhost/demo"]

0 comments on commit 05b35d4

Please sign in to comment.