Skip to content

Commit

Permalink
feat: add wasm plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Apr 17, 2024
1 parent 22f537a commit ebab719
Show file tree
Hide file tree
Showing 12 changed files with 933 additions and 12 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v4
- uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: deno
args: |
fmt
test
coverage
- name: Run Dagger Pipelines
run: |
fluentci run deno_pipeline fmt test
dagger -m github.com/fluent-ci-templates/supabase-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
16 changes: 10 additions & 6 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ jobs:
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
plugin: .
args: |
deploy --project-ref $PROJECT_ID
working-directory: example
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: xovhyzmcpinxtqirtjdp
- name: Run Dagger Pipelines
run: dagger run deno run -A ../src/dagger/runner.ts deploy
working-directory: example
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zenith.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Dagger Zenith
run: |
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.10.0 sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.11.0 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Run Dagger Pipelines
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": "supabase",
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main"
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main",
"version": "v0.6.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 ebab719

Please sign in to comment.