From 3a6c7a6337ced6972c8c3439bda528bc51894d90 Mon Sep 17 00:00:00 2001 From: Jason I Date: Wed, 24 Apr 2024 15:51:16 -0700 Subject: [PATCH] chore: add example test --- .../workflows/check-interface-spec-compatibility.yml | 3 ++- .github/workflows/motoko-basic-bitcoin.test.sh | 5 +++++ .github/workflows/motoko-basic-bitcoin.yaml | 10 ++-------- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/motoko-basic-bitcoin.test.sh diff --git a/.github/workflows/check-interface-spec-compatibility.yml b/.github/workflows/check-interface-spec-compatibility.yml index f5d3ffc06..a12911b82 100644 --- a/.github/workflows/check-interface-spec-compatibility.yml +++ b/.github/workflows/check-interface-spec-compatibility.yml @@ -86,4 +86,5 @@ jobs: .github/workflows/hosting-photo-storage-example.test.sh .github/workflows/hosting-static-website-example.test.sh .github/workflows/hosting-unity-webgl-example.test.sh - .github/workflows/motoko-actor-reference.test.sh \ No newline at end of file + .github/workflows/motoko-actor-reference.test.sh + .github/workflows/motoko-basic-bitcoin.test.sh \ No newline at end of file diff --git a/.github/workflows/motoko-basic-bitcoin.test.sh b/.github/workflows/motoko-basic-bitcoin.test.sh new file mode 100644 index 000000000..41a4c71b9 --- /dev/null +++ b/.github/workflows/motoko-basic-bitcoin.test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +dfx start --background +pushd motoko/basic_bitcoin +dfx deploy basic_bitcoin --argument '(variant { regtest })' +popd \ No newline at end of file diff --git a/.github/workflows/motoko-basic-bitcoin.yaml b/.github/workflows/motoko-basic-bitcoin.yaml index 9f35ad236..d97e04d6a 100644 --- a/.github/workflows/motoko-basic-bitcoin.yaml +++ b/.github/workflows/motoko-basic-bitcoin.yaml @@ -24,10 +24,7 @@ jobs: run: bash .github/workflows/provision-darwin.sh - name: Motoko Basic Bitcoin Darwin run: | - dfx start --background - pushd motoko/basic_bitcoin - dfx deploy basic_bitcoin --argument '(variant { regtest })' - popd + .github/workflows/motoko-basic-bitcoin.test.sh rust-basic-bitcoin-linux: runs-on: ubuntu-20.04 steps: @@ -38,7 +35,4 @@ jobs: run: bash .github/workflows/provision-linux.sh - name: Motoko Basic Bitcoin Linux run: | - dfx start --background - pushd motoko/basic_bitcoin - dfx deploy basic_bitcoin --argument '(variant { regtest })' - popd + .github/workflows/motoko-basic-bitcoin.test.sh