From d1c451a8425608d3b245d20747765480e8d6c2e3 Mon Sep 17 00:00:00 2001 From: Jason I Date: Wed, 24 Apr 2024 15:48:42 -0700 Subject: [PATCH] chore: add example test --- .../workflows/check-interface-spec-compatibility.yml | 4 +++- .github/workflows/hosting-unity-webgl-example.test.sh | 5 +++++ .github/workflows/hosting-unity-webgl-example.yaml | 10 ++-------- 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/hosting-unity-webgl-example.test.sh diff --git a/.github/workflows/check-interface-spec-compatibility.yml b/.github/workflows/check-interface-spec-compatibility.yml index add6ac4b7..4b29f9de9 100644 --- a/.github/workflows/check-interface-spec-compatibility.yml +++ b/.github/workflows/check-interface-spec-compatibility.yml @@ -83,4 +83,6 @@ jobs: - name: Build and deploy all examples run: | - .github/workflows/hosting-photo-storage-example.test.sh \ No newline at end of file + .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 diff --git a/.github/workflows/hosting-unity-webgl-example.test.sh b/.github/workflows/hosting-unity-webgl-example.test.sh new file mode 100644 index 000000000..7062fae45 --- /dev/null +++ b/.github/workflows/hosting-unity-webgl-example.test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +dfx start --background +pushd hosting/unity-webgl-template +dfx deploy +popd \ No newline at end of file diff --git a/.github/workflows/hosting-unity-webgl-example.yaml b/.github/workflows/hosting-unity-webgl-example.yaml index d87fba788..b64dcb289 100644 --- a/.github/workflows/hosting-unity-webgl-example.yaml +++ b/.github/workflows/hosting-unity-webgl-example.yaml @@ -22,10 +22,7 @@ jobs: run: bash .github/workflows/provision-darwin.sh - name: Hosting Unity Webgl Darwin run: | - dfx start --background - pushd hosting/unity-webgl-template - dfx deploy - popd + .github/workflows/hosting-unity-webgl-example.test.sh hosting-unity-webgl-linux: runs-on: ubuntu-20.04 steps: @@ -34,7 +31,4 @@ jobs: run: bash .github/workflows/provision-linux.sh - name: Hosting Unity Webgl Linux run: | - dfx start --background - pushd hosting/unity-webgl-template - dfx deploy - popd + .github/workflows/hosting-unity-webgl-example.test.sh