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 a9bbfda commit ea3debd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .fluentci/fluentci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[[steps]]
name = "Setup go"
command = ["fluentci run --wasm pkgx install go"]

[[steps]]
name = "go get & build"
command = ["go get", "go build -o ./bin/main"]

[[steps]]
name = "Check code style"
command = ["gofmt main.go | diff --ignore-tab-expansion main.go -"]

[[steps]]
name = "Run tests"
command = [
"fluentci run --wasm postgres start",
"go install gotest.tools/gotestsum@latest",
"PATH=$HOME/go/bin:$PATH gotestsum --junitfile junit.xml ./...",
]
env = ["POSTGRES_USER=postgres", "POSTGRES_DB=s2"]

[[steps]]
name = "Test web server"
command = [
"./bin/main 8001 &",
"curl --silent localhost:8001/time | grep \"The current time is\"",
]

0 comments on commit ea3debd

Please sign in to comment.