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
  • Loading branch information
tsirysndr committed Apr 16, 2024
1 parent 2a9912f commit a5fe7b5
Show file tree
Hide file tree
Showing 13 changed files with 968 additions and 16 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@v3
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v4
- name: Setup Fluent CI
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/pulumi-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
28 changes: 17 additions & 11 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
- name: Setup Service Account
run: echo $GCP_SERVICE_ACCOUNT > fluentci-086b644d4c53.json
run: |
echo $GCP_SERVICE_ACCOUNT > fluentci-086b644d4c53.json
env:
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
working-directory: example
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: bun
args: install
working-directory: example
- name: Run Wasm Plugin
run: |
fluentci run --wasm . preview --stack dev
fluentci run --wasm . up --stack dev
working-directory: example
env:
GOOGLE_APPLICATION_CREDENTIALS: ./fluentci-086b644d4c53.json
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Run Dagger Pipelines
run: dagger run deno run -A ../src/dagger/runner.ts preview
working-directory: example
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": "pulumi",
"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 a5fe7b5

Please sign in to comment.