Skip to content

Commit

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

feat: add wasm plugin

feat: add wasm plugin
  • Loading branch information
tsirysndr committed Apr 15, 2024
1 parent 36ad893 commit 4d48dd0
Show file tree
Hide file tree
Showing 14 changed files with 982 additions and 19 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v4
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/spin-pipeline@main functions
- name: Upload to Codecov
run: fluentci run codecov_pipeline
run: fluentci run --wasm codecov upload
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
publish:
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
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
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
pipeline: .
args: |
build
deploy
working-directory: example
env:
SPIN_AUTH_TOKEN: ${{ secrets.SPIN_AUTH_TOKEN }}

- name: Run Dagger Pipelines
run: |
dagger run deno run -A ../src/dagger/runner.ts build
Expand Down
6 changes: 5 additions & 1 deletion dagger.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"name": "spin",
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main"
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main",
"version": "v0.10.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 4d48dd0

Please sign in to comment.