From b3f645a92093a7fd2b9e99b69d88dfe7f95891b1 Mon Sep 17 00:00:00 2001 From: Jason I Date: Wed, 24 Apr 2024 15:50:06 -0700 Subject: [PATCH] chore: add example test --- .../workflows/check-interface-spec-compatibility.yml | 3 ++- .github/workflows/motoko-actor-reference.test.sh | 5 +++++ .github/workflows/motoko-actor_reference-example.yaml | 10 ++-------- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/motoko-actor-reference.test.sh diff --git a/.github/workflows/check-interface-spec-compatibility.yml b/.github/workflows/check-interface-spec-compatibility.yml index 4b29f9de9..f5d3ffc06 100644 --- a/.github/workflows/check-interface-spec-compatibility.yml +++ b/.github/workflows/check-interface-spec-compatibility.yml @@ -85,4 +85,5 @@ jobs: run: | .github/workflows/hosting-photo-storage-example.test.sh .github/workflows/hosting-static-website-example.test.sh - .github/workflows/hosting-unity-webgl-example.test.sh \ No newline at end of file + .github/workflows/hosting-unity-webgl-example.test.sh + .github/workflows/motoko-actor-reference.test.sh \ No newline at end of file diff --git a/.github/workflows/motoko-actor-reference.test.sh b/.github/workflows/motoko-actor-reference.test.sh new file mode 100644 index 000000000..8720fc91d --- /dev/null +++ b/.github/workflows/motoko-actor-reference.test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +dfx start --background +pushd motoko/actor_reference +make test +popd \ No newline at end of file diff --git a/.github/workflows/motoko-actor_reference-example.yaml b/.github/workflows/motoko-actor_reference-example.yaml index 7b669bcfe..37d6f1239 100644 --- a/.github/workflows/motoko-actor_reference-example.yaml +++ b/.github/workflows/motoko-actor_reference-example.yaml @@ -22,10 +22,7 @@ jobs: run: bash .github/workflows/provision-darwin.sh - name: Motoko Actor Reference Darwin run: | - dfx start --background - pushd motoko/actor_reference - make test - popd + .github/workflows/motoko-actor-reference.test.sh motoko-actor-reference-linux: runs-on: ubuntu-20.04 steps: @@ -34,7 +31,4 @@ jobs: run: bash .github/workflows/provision-linux.sh - name: Motoko Actor Reference Linux run: | - dfx start --background - pushd motoko/actor_reference - make test - popd + .github/workflows/motoko-actor-reference.test.sh