Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Nov 3, 2023
1 parent 7d24f65 commit fc5e574
Show file tree
Hide file tree
Showing 269 changed files with 8,667 additions and 87 deletions.
8 changes: 4 additions & 4 deletions example/.fluentci/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.36
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
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.8 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Run Dagger Pipelines
run: dagger run fluentci deno_pipeline
- name: Upload to Codecov
Expand Down
4 changes: 2 additions & 2 deletions example/.fluentci/.github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: v1.36
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
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.8 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Run Dagger Pipelines
Expand Down
16 changes: 11 additions & 5 deletions example/.fluentci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ A ready-to-use Pipeline for [Bazel](https://bazel.build/) projects.

## 🚀 Usage

Run the following command in your project:
Run the following command in your project :

```bash
dagger run fluentci bazel_pipeline
fluentci run bazel_pipeline
```

Or, if you want to use it as a template:
Or, if you want to use it as a template :

```bash
fluentci init -t bazel
Expand All @@ -41,12 +41,18 @@ dagger run fluentci .
| build | Build project |
| test | Run tests |

```graphql
build(src: String!): String

test(src: String!): String
```

## Programmatic usage

You can also use this pipeline programmatically:
You can also use this pipeline programmatically :

```ts
import { test, build } from "https://pkg.fluentci.io/bazel_pipeline@v0.3.0/mod.ts";
import { test, build } from "https://pkg.fluentci.io/bazel_pipeline@v0.3.1/mod.ts";

await test();
await build();
Expand Down
17 changes: 6 additions & 11 deletions example/.fluentci/ci.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
const command = new Deno.Command(Deno.execPath(), {
args: [
"run",
"-A",
"--import-map=https://deno.land/x/base_pipeline/import_map.json",
"https://deno.land/x/base_pipeline/src/dagger/runner.ts",
],
});
import {
test,
build,
} from "https://pkg.fluentci.io/bazel_pipeline@v0.3.1/mod.ts";

const { stdout } = await command.output();

console.log(new TextDecoder().decode(stdout));
await test();
await build();
114 changes: 53 additions & 61 deletions example/.fluentci/deno.lock

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

6 changes: 3 additions & 3 deletions example/.fluentci/deps.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export { assertEquals } from "https://deno.land/std@0.191.0/testing/asserts.ts";
import Client from "https://sdk.fluentci.io/z1/mod.ts";
import Client from "https://sdk.fluentci.io/v0.2.0/mod.ts";
export default Client;

export {
connect,
uploadContext,
CacheSharingMode,
} from "https://sdk.fluentci.io/z1/mod.ts";
} from "https://sdk.fluentci.io/v0.2.0/mod.ts";
export { brightGreen } from "https://deno.land/std@0.191.0/fmt/colors.ts";
export { withDevbox } from "https://nix.fluentci.io/zenith/src/dagger/steps.ts";
export { withDevbox } from "https://nix.fluentci.io/v0.5.2/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 };
Expand Down
Loading

0 comments on commit fc5e574

Please sign in to comment.