-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from fluentci-io/feat/new-project-from-examples
feat(graphql): allow creating new project from examples
- Loading branch information
Showing
53 changed files
with
1,679 additions
and
115 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
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 |
---|---|---|
|
@@ -23,7 +23,8 @@ | |
}, | ||
"test": { | ||
"exclude": [ | ||
".fluentci/" | ||
".fluentci/", | ||
"demo*" | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -17,12 +17,8 @@ export { z } from "https://deno.land/x/[email protected]/mod.ts"; | |
export { decompress } from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { existsSync } from "jsr:@std/[email protected]/exists"; | ||
export { load } from "jsr:@std/[email protected]"; | ||
export { Secret } from "https://deno.land/x/[email protected]/prompt/secret.ts"; | ||
export { | ||
Confirm, | ||
Input, | ||
prompt, | ||
} from "https://deno.land/x/[email protected]/prompt/mod.ts"; | ||
export { Secret } from "jsr:@cliffy/[email protected]/secret"; | ||
export { Confirm, Input, prompt } from "jsr:@cliffy/[email protected]"; | ||
import dir from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { dir }; | ||
export { walk, walkSync } from "jsr:@std/[email protected]/walk"; | ||
|
@@ -54,19 +50,12 @@ export { dayjs }; | |
import { Buffer } from "npm:buffer"; | ||
export { Buffer }; | ||
export { mergeReadableStreams } from "jsr:@std/[email protected]"; | ||
export { | ||
Cell, | ||
Table, | ||
} from "https://deno.land/x/[email protected]/table/mod.ts"; | ||
export { Cell, Table } from "jsr:@cliffy/[email protected]"; | ||
export { | ||
TerminalSpinner, | ||
SpinnerTypes, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { readAllSync } from "jsr:@std/[email protected]"; | ||
import * as toml from "npm:[email protected]"; | ||
export { toml }; | ||
import tomlify from "npm:[email protected]"; | ||
export { tomlify }; | ||
export { serve } from "jsr:@std/[email protected]/server"; | ||
export { createYoga } from "https://esm.sh/[email protected]?external=graphql"; | ||
import SchemaBuilder from "https://esm.sh/*@pothos/[email protected]"; | ||
|
@@ -87,3 +76,7 @@ export { | |
export { AzurePipeline } from "jsr:@tsirysndr/[email protected]"; | ||
export { BuildSpec } from "jsr:@tsirysndr/[email protected]"; | ||
export { ClientError, GraphQLClient, gql } from "npm:[email protected]"; | ||
import * as toml from "jsr:@std/toml"; | ||
export { toml }; | ||
export { assertEquals, assertObjectMatch } from "jsr:@std/assert"; | ||
export { EventEmitter } from "jsr:@denosaurs/event"; |
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,3 @@ | ||
[[steps]] | ||
command = "fluentci run --wasm android assemble_release" | ||
name = "Run gradle build" |
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,7 @@ | ||
[[steps]] | ||
command = "fluentci run --wasm bazel test //..." | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = "fluentci run --wasm bazel build //..." | ||
name = "Build" |
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,7 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm buck test //..."] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm buck build //..."] | ||
name = "Build" |
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,13 @@ | ||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm cmake generate", | ||
"fluentci run --wasm make test", | ||
] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm cmake generate", | ||
"fluentci run --wasm cmake make", | ||
] | ||
name = "Build" |
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,11 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm bun install"] | ||
name = "Install dependencies" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm cypress verify", | ||
"fluentci run --wasm cypress info", | ||
"fluentci run --wasm bun run test:ci", | ||
] | ||
name = "Run e2e tests" |
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,13 @@ | ||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm postgres start", | ||
"fluentci run --wasm deno task test", | ||
] | ||
env = ["POSTGRES_USER=postgres", "POSTGRES_DB=demo"] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm deno compile -A --target x86_64-unknown-linux-gnu --output=app main.ts", | ||
] | ||
name = "Compile" |
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,20 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm mariadb start"] | ||
env = [ | ||
"MARIADB_USER=user", | ||
"MARIADB_PASSWORD=password", | ||
"MARIADB_DATABASE=example_test", | ||
] | ||
name = "Start MariaDB" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm elixir test", | ||
"fluentci run --wasm elixir compile", | ||
] | ||
env = [ | ||
"MYSQL_DATABASE=example_test", | ||
"MYSQL_USER=root", | ||
"MYSQL_HOST=127.0.0.1", | ||
] | ||
name = "Run tests" |
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,10 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm android setup"] | ||
name = "Setup Android SDK" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm bun install", | ||
"fluentci run --wasm fastlane android buildRelease", | ||
] | ||
name = "Build" |
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,10 @@ | ||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm flutter code_quality", | ||
"fluentci run --wasm flutter test", | ||
] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm flutter build apk --release"] | ||
name = "Build" |
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,7 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm gleam test"] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm gleam build"] | ||
name = "Build" |
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,27 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm pkgx install go"] | ||
name = "Setup go" | ||
|
||
[[steps]] | ||
command = ["go get", "go build -o ./bin/main"] | ||
name = "go get & build" | ||
|
||
[[steps]] | ||
command = ["gofmt main.go | diff --ignore-tab-expansion main.go -"] | ||
name = "Check code style" | ||
|
||
[[steps]] | ||
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"] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = [ | ||
"./bin/main 8001 &", | ||
"curl --silent localhost:8001/time | grep 'The current time is'", | ||
] | ||
name = "Test web server" |
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,28 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm java setup zulu-17.46.16"] | ||
name = "Setup Java" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm maven setup"] | ||
name = "Setup maven" | ||
|
||
[[steps]] | ||
command = ["mvn -q package jmeter:configure -Dmaven.test.skip-true"] | ||
env = ["JAVA_HOME=$HOME/.local/share/mise/installs/java/zulu-17.46.16"] | ||
name = "Build" | ||
|
||
[[steps]] | ||
command = ["java -version", "mvn -q test-compile -Dmaven.test.skip=true"] | ||
env = ["JAVA_HOME=$HOME/.local/share/mise/installs/java/zulu-17.46.16"] | ||
name = "Run tests" | ||
|
||
[[steps]] | ||
command = [ | ||
"java -version", | ||
"java -jar target/spring-pipeline-demo.jar > /dev/null &", | ||
"sleep 20", | ||
"mvn -q jmeter:jmeter", | ||
"mvn jmeter:results", | ||
] | ||
env = ["JAVA_HOME=$HOME/.local/share/mise/installs/java/zulu-17.46.16"] | ||
name = "Performance tests" |
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,42 @@ | ||
[package] | ||
authors = ["Tsiry Sandratraina <[email protected]>"] | ||
description = "" | ||
license = "MIT" | ||
name = "fluentci-demo-javascript" | ||
version = "0.1.0" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm bun run lint"] | ||
name = "Client lint" | ||
working_directory = "src/client" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm bun run lint"] | ||
name = "Server lint" | ||
working_directory = "src/server" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm bun run test"] | ||
env = ["CI=true", "NODE_ENV=test"] | ||
name = "Client Unit Tests" | ||
working_directory = "src/client" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm bun run test"] | ||
env = ["CI=true", "NODE_ENV=test"] | ||
name = "Server Unit Tests" | ||
working_directory = "src/server" | ||
|
||
[[steps]] | ||
command = [ | ||
"cd src/client && fluentci run --wasm cypress install && cd ../.. && fluentci run --wasm . e2e", | ||
] | ||
name = "End to End Tests" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm postgres start", | ||
"pkgx psql ---host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE test;'", | ||
"fluentci run --wasm . server_e2e", | ||
] | ||
name = "End to End Tests (Server)" |
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,7 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm gradle test"] | ||
name = "test" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm gradle build"] | ||
name = "build" |
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,17 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm mariadb start"] | ||
env = [ | ||
"MARIADB_USER=user", | ||
"MARIADB_PASSWORD=password", | ||
"MARIADB_DATABASE=laravel", | ||
] | ||
name = "Start MariaDB" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm laravel test"] | ||
env = [ | ||
"MARIADB_DATABASE=laravel", | ||
"MARIADB_USER=user", | ||
"MARIADB_PASSWORD=password", | ||
] | ||
name = "Run tests" |
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,6 @@ | ||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm php composer_install --no-interaction", | ||
"fluentci run --wasm php test", | ||
] | ||
name = "Run tests" |
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,11 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm bun install"] | ||
name = "Install dependencies" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm playwright install --with-deps", | ||
"fluentci run --wasm playwright test -j $(nproc)", | ||
] | ||
env = ["CI=true"] | ||
name = "Run playwright tests" |
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,20 @@ | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm mariadb start"] | ||
env = [ | ||
"MARIADB_DATABSE=todo", | ||
"MARIADB_USER=user", | ||
"MARIADB_PASSWORD=testrootpass", | ||
] | ||
name = "Start MariaDB" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm django test"] | ||
env = [ | ||
"MARIADB_DATABSE=todo", | ||
"MARIADB_USER=user", | ||
"MARIADB_PASSWORD=testrootpass", | ||
"MARIADB_ROOT_PASSWORD=root", | ||
"MARIADB_HOST=127.0.0.1", | ||
] | ||
name = "Run tests" |
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,14 @@ | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm mongo start"] | ||
name = "Start MongoDB" | ||
|
||
[[steps]] | ||
command = [ | ||
"fluentci run --wasm devbox run pip install -r requirements.txt", | ||
"fluentci run --wasm devbox run python run.py &", | ||
"sleep 2", | ||
"fluentci run --wasm devbox run python -m unittest", | ||
] | ||
env = ["DB=mongodb://localhost:27017/tasks", "PORT=5000"] | ||
name = "Run tests" |
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,8 @@ | ||
[[steps]] | ||
command = ["fluentci run --wasm bun install"] | ||
name = "Install dependencies" | ||
|
||
[[steps]] | ||
command = ["fluentci run --wasm android assemble_release"] | ||
name = "Run gradle assemble" | ||
working_directory = "android" |
Oops, something went wrong.