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 ccb7756 commit b6b4102
Show file tree
Hide file tree
Showing 32 changed files with 12,791 additions and 68 deletions.
2 changes: 2 additions & 0 deletions deno.lock

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

28 changes: 27 additions & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,16 +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 } 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 @@ -23,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
7 changes: 7 additions & 0 deletions example/.fluentci/deno.lock

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

30 changes: 29 additions & 1 deletion example/.fluentci/deps.ts
Original file line number Diff line number Diff line change
@@ -1,16 +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 } 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 @@ -20,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
2 changes: 1 addition & 1 deletion example/.fluentci/fixtures/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
before_script:
- apk add docker-cli curl unzip
- deno install -A -r https://cli.fluentci.io -n fluentci
- curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
- curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.9.3 sh
- mv bin/dagger /usr/local/bin
- dagger version

Expand Down
2 changes: 1 addition & 1 deletion example/.fluentci/fixtures/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
- script: deno install -A -r https://cli.fluentci.io -n fluentci
displayName: Setup Fluent CI CLI
- script: |
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.9.3 sh
sudo mv bin/dagger /usr/local/bin
dagger version
displayName: Setup Dagger
Expand Down
2 changes: 1 addition & 1 deletion example/.fluentci/fixtures/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ phases:
- export DENO_INSTALL="$HOME/.deno"
- export PATH="$DENO_INSTALL/bin:$PATH"
- deno install -A -r https://cli.fluentci.io -n fluentci
- curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
- curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.9.3 sh
- mv bin/dagger /usr/local/bin
- dagger version
build:
Expand Down
2 changes: 1 addition & 1 deletion example/.fluentci/fixtures/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
export PATH="$DENO_INSTALL/bin:$PATH"
- run: deno install -A -r https://cli.fluentci.io -n fluentci
- run: |
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.9.3 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- run:
Expand Down
12 changes: 2 additions & 10 deletions example/.fluentci/fixtures/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37
- name: Setup Fluent CI CLI
run: deno install -A -r https://cli.fluentci.io -n fluentci
- name: Setup Dagger
run: |
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v2
- name: Run Dagger Pipelines
run: fluentci run bun_pipeline
8 changes: 4 additions & 4 deletions example/.fluentci/gen/nexus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export interface NexusGenFieldTypeNames {
export interface NexusGenArgTypes {
Query: {
run: { // args
bunVersion: string; // String!
bunVersion?: string | null; // String
command: string; // String!
src: string; // String!
src?: string | null; // String
}
test: { // args
bunVersion: string; // String!
src: string; // String!
bunVersion?: string | null; // String
src?: string | null; // String
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions example/.fluentci/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### This file was generated by Nexus Schema
### Do not make changes to this file directly


type Query {
run(bunVersion: String!, command: String!, src: String!): String
test(bunVersion: String!, src: String!): String
}
run(bunVersion: String, command: String!, src: String): String
test(bunVersion: String, src: String): String
}
Loading

0 comments on commit b6b4102

Please sign in to comment.