Skip to content

Commit

Permalink
feat: add wasm plugin
Browse files Browse the repository at this point in the history
fix example
  • Loading branch information
tsirysndr committed Apr 14, 2024
1 parent a57fb31 commit 8eaf274
Show file tree
Hide file tree
Showing 11 changed files with 984 additions and 13 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@v3
- 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/trivy-pipeline@main functions
- name: Upload coverage to Codecov
run: fluentci run codecov_pipeline
run: fluentci run --wasm codecov upload
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
publish:
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ 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: |
config . --format=table --exit-code=0
image hashicorp/terraform:1.6 --format=table --exit-code=0
working-directory: example
- name: Run Dagger Pipelines
run: |
dagger run deno run -A ../src/dagger/runner.ts config
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": "trivy",
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main"
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main",
"version": "v0.5.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 8eaf274

Please sign in to comment.