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 19, 2024
1 parent b04c219 commit 09c1824
Show file tree
Hide file tree
Showing 13 changed files with 949 additions and 12 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/atlas-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
31 changes: 23 additions & 8 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denolib/setup-deno@v2
- name: Shutdown Ubuntu MySQL (SUDO)
run: sudo service mysql stop
- uses: getong/mariadb-action@v1.1
with:
deno-version: v1.41
mysql database: "example"
mysql user: "user"
mysql password: "password"
- uses: getong/mariadb-action@v1.1
with:
host port: 3800
mysql database: "example"
mysql user: "user"
mysql password: "password"
- 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: |
dry_run
migrate --auto-approve
working-directory: example
env:
DATABASE_URL: mysql://user:password@127.0.0.1:3306/example
DATABASE_DEV_URL: mysql://user:password@127.0.0.1:3800/example
- name: Run Dagger Pipelines
run: dagger run deno run -A ../src/dagger/runner.ts
working-directory: example
Expand Down
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 09c1824

Please sign in to comment.