diff --git a/.github/workflows/check-interface-spec-compatibility.yml b/.github/workflows/check-interface-spec-compatibility.yml index a12911b82..d464214ff 100644 --- a/.github/workflows/check-interface-spec-compatibility.yml +++ b/.github/workflows/check-interface-spec-compatibility.yml @@ -84,7 +84,21 @@ jobs: - name: Build and deploy all examples run: | .github/workflows/hosting-photo-storage-example.test.sh + - name: Build and deploy all examples + run: | .github/workflows/hosting-static-website-example.test.sh + - name: Build and deploy all examples + run: | .github/workflows/hosting-unity-webgl-example.test.sh + - name: Build and deploy all examples + run: | .github/workflows/motoko-actor-reference.test.sh - .github/workflows/motoko-basic-bitcoin.test.sh \ No newline at end of file + - name: Build and deploy all examples + run: | + .github/workflows/motoko-basic-bitcoin.test.sh + - name: Build and deploy all examples + run: | + .github/workflows/motoko-basic-dao-example.test.sh + - name: Build and deploy all examples + run: | + .github/workflows/motoko-calc-example.test.sh \ No newline at end of file diff --git a/.github/workflows/motoko-basic-dao-example.test.sh b/.github/workflows/motoko-basic-dao-example.test.sh new file mode 100644 index 000000000..ca89a77be --- /dev/null +++ b/.github/workflows/motoko-basic-dao-example.test.sh @@ -0,0 +1,10 @@ +#!/bin/bash +dfx start --background +pushd motoko/basic_dao +dfx canister create basic_dao +dfx build +(for f in tests/*.test.sh; do +echo "==== Run test $f ====" +ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit +done) +popd \ No newline at end of file diff --git a/.github/workflows/motoko-basic-dao-example.yml b/.github/workflows/motoko-basic-dao-example.yml index b8db93bbc..0f6a5d541 100644 --- a/.github/workflows/motoko-basic-dao-example.yml +++ b/.github/workflows/motoko-basic-dao-example.yml @@ -22,15 +22,7 @@ jobs: run: bash .github/workflows/provision-darwin.sh - name: Motoko DAO Darwin run: | - dfx start --background - pushd motoko/basic_dao - dfx canister create basic_dao - dfx build - (for f in tests/*.test.sh; do - echo "==== Run test $f ====" - ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit - done) - popd + .github/workflows/motoko-basic-dao-example.test.sh motoko-hello-linux: runs-on: ubuntu-20.04 steps: @@ -39,12 +31,4 @@ jobs: run: bash .github/workflows/provision-linux.sh - name: Motoko DAO Linux run: | - dfx start --background - pushd motoko/basic_dao - dfx canister create basic_dao - dfx build - (for f in tests/*.test.sh; do - echo "==== Run test $f ====" - ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit - done) - popd + .github/workflows/motoko-basic-dao-example.test.sh diff --git a/.github/workflows/motoko-calc-example.test.sh b/.github/workflows/motoko-calc-example.test.sh new file mode 100644 index 000000000..a20b77e03 --- /dev/null +++ b/.github/workflows/motoko-calc-example.test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +dfx start --background +pushd motoko/calc +make test +popd \ No newline at end of file diff --git a/.github/workflows/motoko-calc-example.yaml b/.github/workflows/motoko-calc-example.yaml index 08e141062..640210724 100644 --- a/.github/workflows/motoko-calc-example.yaml +++ b/.github/workflows/motoko-calc-example.yaml @@ -22,10 +22,7 @@ jobs: run: bash .github/workflows/provision-darwin.sh - name: Motoko Calc Darwin run: | - dfx start --background - pushd motoko/calc - make test - popd + .github/workflows/motoko-calc-example.test.sh motoko-calc-example-linux: runs-on: ubuntu-20.04 steps: @@ -34,7 +31,4 @@ jobs: run: bash .github/workflows/provision-linux.sh - name: Motoko Calc Linux run: | - dfx start --background - pushd motoko/calc - make test - popd + .github/workflows/motoko-calc-example.test.sh