diff --git a/.github/workflows/deploy-cloudflare-bridge.yml b/.github/workflows/deploy-cloudflare-bridge.yml index 97a4b04..29e1cf4 100644 --- a/.github/workflows/deploy-cloudflare-bridge.yml +++ b/.github/workflows/deploy-cloudflare-bridge.yml @@ -90,7 +90,7 @@ jobs: [[ ! -e "$BRIDGE_DIRECTORY/_redirects" ]] [[ ! -e "$BRIDGE_DIRECTORY/_worker.js" ]] [[ ! -d "$BRIDGE_DIRECTORY/functions" ]] - [[ "$(find "$BRIDGE_DIRECTORY" -name index.html -type f | wc -l)" -eq 19 ]] + [[ "$(find "$BRIDGE_DIRECTORY" -name index.html -type f | wc -l)" -eq 20 ]] - name: Validate Cloudflare Pages project isolation shell: bash diff --git a/tests/cloudflare-bridge.test.mjs b/tests/cloudflare-bridge.test.mjs index e48349a..4935fb3 100644 --- a/tests/cloudflare-bridge.test.mjs +++ b/tests/cloudflare-bridge.test.mjs @@ -26,6 +26,7 @@ assert.match(workflow, /web_analytics_token/); assert.match(workflow, /Pages project state:/); assert.match(workflow, /\[\[ ! -e "\$BRIDGE_DIRECTORY\/CNAME" \]\]/); assert.match(workflow, /\[\[ ! -e "\$BRIDGE_DIRECTORY\/_redirects" \]\]/); +assert.match(workflow, /find "\$BRIDGE_DIRECTORY" -name index\.html -type f \| wc -l\)" -eq 20/); assert.doesNotMatch(workflow, /securetools\.app\/tools/); assert.match(workflow, /node tests\/deployment-smoke\.mjs "\$DEPLOYMENT_URL" noindex/); assert.match(workflow, /node tests\/deployment-smoke\.mjs https:\/\/secure-tools-web-bridge\.pages\.dev noindex/);