Skip to content

Commit

Permalink
feat: add wasm plugin
Browse files Browse the repository at this point in the history
fix example

fix example

fix example
  • Loading branch information
tsirysndr committed Apr 16, 2024
1 parent 4515d86 commit ece3f39
Show file tree
Hide file tree
Showing 12 changed files with 1,222 additions and 14 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v4
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
pipeline: deno
args: |
fmt
test
coverage
- name: Run Dagger Pipelines
run: |
fluentci run deno_pipeline fmt test
dagger -m github.com/fluent-ci-templates/nodejs-pipeline@main functions
- name: Upload Coverage
run: fluentci run codecov_pipeline
run: fluentci run --wasm codecov upload
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
publish:
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,24 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
package_manager: [yarn, npm, bun, pnpm]
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
deno-version: v1.41
- 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.10.0 sh
sudo mv bin/dagger /usr/local/bin
dagger version
wasm: true
plugin: .
args: |
install
test
build
run build
working-directory: example
env:
PACKAGE_MANAGER: ${{ matrix.package_manager }}
- name: Run Dagger Pipelines
run: dagger run deno run -A ../src/dagger/runner.ts test build
working-directory: example
6 changes: 5 additions & 1 deletion dagger.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"name": "nodejs",
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main"
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main",
"version": "v0.8.0",
"description": "",
"author": "Tsiry Sandratraina",
"license": "MIT"
}
1 change: 1 addition & 0 deletions example/.fluentci/plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
Loading

0 comments on commit ece3f39

Please sign in to comment.