From 0c3921f8db981e239682e5da82b20ce5141e97ba Mon Sep 17 00:00:00 2001 From: Jason I Date: Wed, 24 Apr 2024 15:46:41 -0700 Subject: [PATCH] chore: add example test --- .../workflows/hosting-static-website-example.test.sh | 5 +++++ .github/workflows/hosting-static-website-example.yaml | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/hosting-static-website-example.test.sh diff --git a/.github/workflows/hosting-static-website-example.test.sh b/.github/workflows/hosting-static-website-example.test.sh new file mode 100644 index 000000000..f014b1c4b --- /dev/null +++ b/.github/workflows/hosting-static-website-example.test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +dfx start --background +pushd hosting/static-website +dfx deploy +popd \ No newline at end of file diff --git a/.github/workflows/hosting-static-website-example.yaml b/.github/workflows/hosting-static-website-example.yaml index bd0bb0b5a..6ab621ff3 100644 --- a/.github/workflows/hosting-static-website-example.yaml +++ b/.github/workflows/hosting-static-website-example.yaml @@ -22,10 +22,7 @@ jobs: run: bash .github/workflows/provision-darwin.sh - name: Hosting Static Website Darwin run: | - dfx start --background - pushd hosting/static-website - dfx deploy - popd + .github/workflows/hosting-static-website-example.test.sh hosting-static-website-linux: runs-on: ubuntu-20.04 steps: @@ -34,7 +31,4 @@ jobs: run: bash .github/workflows/provision-linux.sh - name: Hosting Static Website Linux run: | - dfx start --background - pushd hosting/static-website - dfx deploy - popd + .github/workflows/hosting-static-website-example.test.sh