Skip to content

Commit

Permalink
Merge pull request #6 from synadia-io/doc
Browse files Browse the repository at this point in the history
[Doc] pipelines
  • Loading branch information
aricart committed Apr 18, 2024
2 parents f64d072 + d2a03fd commit 48343b2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/messagepipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
deno-version: [1.42.4]

steps:
- name: Git Checkout NHGC
- name: Git Checkout messagepipelines
uses: actions/checkout@v3
with:
fetch-depth: 1
Expand All @@ -34,12 +34,16 @@ jobs:
deno-version: ${{ matrix.deno-version }}

- name: Lint Deno Module
run: deno fmt --check --ignore=docs/
working-directory: messagepipeline
run: |
deno fmt --check --ignore=docs/
- name: Test Deno Module
working-directory: messagepipeline
env:
TMPDIR: ${{ runner.temp }}
CI: true
run: |
deno test --allow-all --unstable --parallel --fail-fast --coverage=./cov nhgc
deno test --allow-all --unstable --parallel --fail-fast --coverage=./cov
3 changes: 2 additions & 1 deletion .github/workflows/messagepipelines_esm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
with:
deno-version: ${{ matrix.deno-version }}
- name: Build
run: deno bundle messagepipeline/mod.ts messagepipeline/mod.mjs
working-directory: messagepipeline
run: deno bundle mod.ts mod.mjs

- name: Upload assets to a Release
uses: AButler/[email protected]
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/nhgc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ jobs:
deno-version: ${{ matrix.deno-version }}

- name: Lint Deno Module
run: deno fmt --check --ignore=docs/
working-directory: nhgc
run: |
deno fmt --check --ignore=docs/
- name: Test Deno Module
working-directory: nhgc
env:
TMPDIR: ${{ runner.temp }}
CI: true
NHG_APIKEY: ${{ secrets.NHG_APIKEY }}
NHG_URL: ${{ secrets.NHG_URL }}
run: |
deno test --allow-all --unstable --parallel --fail-fast --coverage=./cov nhgc
deno test --allow-all --unstable --parallel --fail-fast --coverage=./cov
3 changes: 2 additions & 1 deletion .github/workflows/nhgc_esm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ jobs:
with:
deno-version: ${{ matrix.deno-version }}
- name: Build
working-directory: nhgc
run: deno bundle nhgc/mod.ts nhgc/mod.mjs

- name: Upload assets to a Release
uses: AButler/[email protected]
with:
files: nhgc/mod.mjs
files: mod.mjs
repo-token: ${{ secrets.GH_TOKEN }}
8 changes: 4 additions & 4 deletions messagepipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ if (r.isError) {
}
```

The intention of `Result` is have an efficient pattern for testing if the pipeline
succeed or failed and preventing errors.
The intention of `Result` is have an efficient pattern for testing if the
pipeline succeed or failed and preventing errors.

As you can see, using a Pipeline is very straight forward. It allows you to compose
repetitive code info a flow that could lead to a simpler handler.
As you can see, using a Pipeline is very straight forward. It allows you to
compose repetitive code info a flow that could lead to a simpler handler.

### Full Example

Expand Down

0 comments on commit 48343b2

Please sign in to comment.