From 46c8c1bb0e0defb0f05c8a7d8d7c55f7f43da872 Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Mon, 20 Mar 2023 15:48:48 +0200 Subject: [PATCH] chore: Use setup-marine action and add e2e [fixes FLU-244 and FLU-68] (#15) * Use setup-marine action * Add v? * Meh * Set marine version to 0.12.5 * Use marine 0.13.0 * Add e2e * Depend in build --- .github/workflows/build.yml | 6 ++-- .github/workflows/e2e.yml | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62aba47..d07d482 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,10 +21,10 @@ jobs: - name: Setup Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Install Marine - uses: baptiste0928/cargo-install@v1.3.1 + - name: Setup marine + uses: fluencelabs/setup-marine@v1 with: - crate: marine + version: 0.13.0 - name: Build sqlite-wasm run: make diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d2df1b0..ee9a286 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -16,3 +16,64 @@ jobs: build: name: "sqlite" uses: ./.github/workflows/build.yml + + snapshot: + needs: build + name: "sqlite-wasm" + uses: fluencelabs/sqlite-wasm-connector/.github/workflows/snapshot.yml@master + + registry: + needs: + - snapshot + uses: fluencelabs/registry/.github/workflows/tests.yml@main + with: + cargo-dependencies: | + [ + { + "package": "marine-sqlite-connector", + "version": "=${{ needs.snapshot.outputs.version }}", + "registry": "fluence" + } + ] + spell: + needs: + - snapshot + uses: fluencelabs/spell/.github/workflows/snapshot.yml@main + with: + cargo-dependencies: | + [ + { + "package": "marine-sqlite-connector", + "version": "=${{ needs.snapshot.outputs.version }}", + "registry": "fluence" + } + ] + + rust-peer: + needs: + - spell + + uses: fluencelabs/rust-peer/.github/workflows/snapshot.yml@master + with: + image-name: "docker.fluence.dev/sqlite-wasm-connector" + cargo-dependencies: | + [ + { + "package": "fluence-spell-dtos", + "version": "=${{ needs.spell.outputs.cargo-version }}", + "registry": "fluence" + }, + { + "package": "fluence-spell-distro", + "version": "=${{ needs.spell.outputs.cargo-version }}", + "registry": "fluence" + } + ] + + spell-aqua-tests: + name: "spell" + needs: + - rust-peer + uses: fluencelabs/spell/.github/workflows/tests.yml@main + with: + rust-peer-image: "${{ needs.rust-peer.outputs.rust-peer-image }}"