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 07eb9df commit 781d6af
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions .fluentci/fluentci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,42 @@ name = "fluentci-demo-javascript"
version = "0.1.0"
description = ""
license = "MIT"
authors = [
"Tsiry Sandratraina <[email protected]>"
]
authors = ["Tsiry Sandratraina <[email protected]>"]

[[steps]]
name = "Client lint"
command = ["fluentci run --wasm bun run lint"]
working_directory = "src/client"

[[steps]]
name = "Server lint"
command = ["fluentci run --wasm bun run lint"]
working_directory = "src/server"

[[steps]]
name = "Client Unit Tests"
command = ["fluentci run --wasm bun run test"]
working_directory = "src/client"
env = ["CI=true", "NODE_ENV=test"]

[[steps]]
name = "Server Unit Tests"
command = ["fluentci run --wasm bun run test"]
working_directory = "src/server"
env = ["CI=true", "NODE_ENV=test"]

[[steps]]
name = "End to End Tests"
command = [
"cd src/client && fluentci run --wasm cypress install",
"cd ../..",
"fluentci run --wasm . e2e",
]

[[steps]]
name = "End to End Tests (Server)"
command = [
"fluentci run --wasm postgres start",
"pkgx psql ---host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE test;'",
"fluentci run --wasm . server_e2e",
]

0 comments on commit 781d6af

Please sign in to comment.