Skip to content

Commit

Permalink
use generated client
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Nov 19, 2023
1 parent 8701dc1 commit 01d5c00
Show file tree
Hide file tree
Showing 29 changed files with 12,821 additions and 91 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ fluentci run .
| llvm_cov | Generate llvm coverage report |

```graphql
build(src: String!): String
clippy(src: String!): String
test(src: String!): String
llvmCov(src: String!): String
build(packageName: String, src: String, target: String): String
clippy(src: String): String
test(src: String): String
llvmCov(src: String): String
```

## Programmatic usage
Expand Down
35 changes: 27 additions & 8 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
export { assertEquals } from "https://deno.land/std@0.191.0/testing/asserts.ts";
import Client from "https://sdk.fluentci.io/v0.3.0/mod.ts";
import { Client } from "./sdk/client.gen.ts";
export default Client;

export {
connect,
uploadContext,
CacheSharingMode,
Container,
} from "https://sdk.fluentci.io/v0.3.0/mod.ts";
export { connect, uploadContext } from "https://sdk.fluentci.io/v0.3.0/mod.ts";
export { brightGreen } from "https://deno.land/std@0.191.0/fmt/colors.ts";
export { withDevbox } from "https://nix.fluentci.io/v0.5.3/src/dagger/steps.ts";
export { stringifyTree } from "https://esm.sh/stringify-tree@1.1.1";
import gql from "https://esm.sh/graphql-tag@2.12.6";
export { gql };

export {
arg,
queryType,
stringArg,
booleanArg,
intArg,
nonNull,
makeSchema,
Expand All @@ -30,6 +25,30 @@ export {
export { parse } from "https://deno.land/std@0.205.0/flags/mod.ts";
export { snakeCase, camelCase } from "https://cdn.skypack.dev/lodash";

export {
ClientError,
GraphQLClient,
} from "https://esm.sh/v128/graphql-request@6.1.0";
export {
DaggerSDKError,
UnknownDaggerError,
DockerImageRefValidationError,
EngineSessionConnectParamsParseError,
ExecError,
GraphQLRequestError,
InitEngineSessionBinaryError,
TooManyNestedObjectsError,
EngineSessionError,
EngineSessionConnectionTimeoutError,
NotAwaitedRequestError,
ERROR_CODES,
} from "https://esm.sh/@dagger.io/dagger@0.9.3";

export type {
CallbackFct,
ConnectOpts,
} from "https://sdk.fluentci.io/v0.3.0/mod.ts";

export * as FluentGitlabCI from "https://deno.land/x/fluent_gitlab_ci@v0.4.2/mod.ts";
export * as FluentGithubActions from "https://deno.land/x/fluent_github_actions@v0.2.1/mod.ts";
export * as FluentCircleCI from "https://deno.land/x/fluent_circleci@v0.2.5/mod.ts";
Expand Down
5 changes: 5 additions & 0 deletions example/.fluentci/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 29 additions & 8 deletions example/.fluentci/deps.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
export { assertEquals } from "https://deno.land/std@0.191.0/testing/asserts.ts";
import Client from "https://sdk.fluentci.io/v0.3.0/mod.ts";
import { Client } from "./sdk/client.gen.ts";
export default Client;

export {
connect,
uploadContext,
CacheSharingMode,
Container,
} from "https://sdk.fluentci.io/v0.3.0/mod.ts";
export { connect, uploadContext } from "https://sdk.fluentci.io/v0.3.0/mod.ts";
export { brightGreen } from "https://deno.land/std@0.191.0/fmt/colors.ts";
export { withDevbox } from "https://nix.fluentci.io/v0.5.3/src/dagger/steps.ts";
export { stringifyTree } from "https://esm.sh/stringify-tree@1.1.1";
import gql from "https://esm.sh/graphql-tag@2.12.6";
export { gql };

export {
arg,
queryType,
stringArg,
booleanArg,
intArg,
nonNull,
makeSchema,
Expand All @@ -27,6 +22,32 @@ export {
join,
resolve,
} from "https://deno.land/std@0.203.0/path/mod.ts";
export { parse } from "https://deno.land/std@0.205.0/flags/mod.ts";
export { snakeCase, camelCase } from "https://cdn.skypack.dev/lodash";

export {
ClientError,
GraphQLClient,
} from "https://esm.sh/v128/graphql-request@6.1.0";
export {
DaggerSDKError,
UnknownDaggerError,
DockerImageRefValidationError,
EngineSessionConnectParamsParseError,
ExecError,
GraphQLRequestError,
InitEngineSessionBinaryError,
TooManyNestedObjectsError,
EngineSessionError,
EngineSessionConnectionTimeoutError,
NotAwaitedRequestError,
ERROR_CODES,
} from "https://esm.sh/@dagger.io/dagger@0.9.3";

export type {
CallbackFct,
ConnectOpts,
} from "https://sdk.fluentci.io/v0.3.0/mod.ts";

export * as FluentGitlabCI from "https://deno.land/x/fluent_gitlab_ci@v0.4.2/mod.ts";
export * as FluentGithubActions from "https://deno.land/x/fluent_github_actions@v0.2.1/mod.ts";
Expand Down
10 changes: 6 additions & 4 deletions example/.fluentci/gen/nexus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,18 @@ export interface NexusGenFieldTypeNames {
export interface NexusGenArgTypes {
Query: {
build: { // args
src: string; // String!
packageName?: string | null; // String
src?: string | null; // String
target?: string | null; // String
}
clippy: { // args
src: string; // String!
src?: string | null; // String
}
llvmCov: { // args
src: string; // String!
src?: string | null; // String
}
test: { // args
src: string; // String!
src?: string | null; // String
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions example/.fluentci/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


type Query {
build(src: String!): String
clippy(src: String!): String
llvmCov(src: String!): String
test(src: String!): String
build(packageName: String, src: String, target: String): String
clippy(src: String): String
llvmCov(src: String): String
test(src: String): String
}
Loading

0 comments on commit 01d5c00

Please sign in to comment.