-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |