diff --git a/.github/workflows/test-cf-worker-hono.yml b/.github/workflows/test-cf-worker-hono.yml index a49e995a1..c4547d077 100644 --- a/.github/workflows/test-cf-worker-hono.yml +++ b/.github/workflows/test-cf-worker-hono.yml @@ -6,8 +6,8 @@ jobs: env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - APP_URL: ${{ secrets.CLOUDFLARE_HONO_APP_URL }} - CLOUDFLARE_PROJECT_NAME: ${{ secrets.CLOUDFLARE_HONO_PROJECT_NAME }} + APP_URL: "https://hono.rishabh-77b.workers.dev" + CLOUDFLARE_PROJECT_NAME: "hono" TEST_DEPLOYED_VERSION: true defaults: run: diff --git a/.github/workflows/test-cf-worker-next.yml b/.github/workflows/test-cf-worker-next.yml index 2d4e11fa6..83c340fd7 100644 --- a/.github/workflows/test-cf-worker-next.yml +++ b/.github/workflows/test-cf-worker-next.yml @@ -6,8 +6,8 @@ jobs: env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - APP_URL: ${{ secrets.CLOUDFLARE_APP_URL }} - CLOUDFLARE_PROJECT_NAME: ${{ secrets.CLOUDFLARE_PROJECT_NAME }} + APP_URL: "supertokens-node-b95.pages.dev" + CLOUDFLARE_PROJECT_NAME: "supertokens-node-pr-check-for-edge-function-compat" TEST_DEPLOYED_VERSION: true defaults: run: diff --git a/.github/workflows/test-edge-function.yml b/.github/workflows/test-edge-function.yml deleted file mode 100644 index e938be776..000000000 --- a/.github/workflows/test-edge-function.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "Test edge function compatibility" -on: push -jobs: - test: - runs-on: ubuntu-latest - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.netlify_auth_token }} - NETLIFY_SITE_ID: ${{ secrets.netlify_site_id }} - TEST_DEPLOYED_VERSION: true - defaults: - run: - working-directory: examples/next/with-emailpassword - steps: - - uses: actions/checkout@v2 - - run: echo $GITHUB_SHA - - run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA - - run: npm install - - run: npm install mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 - - - run: netlify deploy --alias 0 --build --json --auth=$NETLIFY_AUTH_TOKEN > deployInfo.json - - run: cat deployInfo.json - - run: | - ( \ - (echo "=========== Test attempt 1 ===========" && npx mocha --no-config --timeout 80000 test/**/*.test.js) || \ - (echo "=========== Test attempt 2 ===========" && npx mocha --no-config --timeout 80000 test/**/*.test.js) || \ - (echo "=========== Test attempt 3 ===========" && npx mocha --no-config --timeout 80000 test/**/*.test.js) \ - ) - - name: The job has failed - if: ${{ failure() }} - uses: actions/upload-artifact@v3 - with: - name: screenshots - path: | - ./**/*screenshot.jpeg diff --git a/examples/cloudflare-workers/with-email-password-hono-be-only/index.ts b/examples/cloudflare-workers/with-email-password-hono-be-only/index.ts index fbf7813a9..c72163352 100644 --- a/examples/cloudflare-workers/with-email-password-hono-be-only/index.ts +++ b/examples/cloudflare-workers/with-email-password-hono-be-only/index.ts @@ -39,4 +39,10 @@ app.get("/sessioninfo", (c) => { }); }); +app.get("/", (c) => { + return c.json({ + "message": "Hello from Supertokens" + }) +}) + export default app; diff --git a/examples/cloudflare-workers/with-email-password-hono-be-only/package.json b/examples/cloudflare-workers/with-email-password-hono-be-only/package.json index b8f4dba21..4c242a13f 100644 --- a/examples/cloudflare-workers/with-email-password-hono-be-only/package.json +++ b/examples/cloudflare-workers/with-email-password-hono-be-only/package.json @@ -5,7 +5,7 @@ "description": "", "main": "index.js", "scripts": { - "start": "wrangler dev index.ts --port 3001" + "start": "wrangler dev index.ts --port 3000" }, "dependencies": { "hono": "^4.3.9", diff --git a/examples/cloudflare-workers/with-email-password-hono-be-only/test/basic.test.js b/examples/cloudflare-workers/with-email-password-hono-be-only/test/basic.test.js index ea7b073bf..9d60cb99f 100644 --- a/examples/cloudflare-workers/with-email-password-hono-be-only/test/basic.test.js +++ b/examples/cloudflare-workers/with-email-password-hono-be-only/test/basic.test.js @@ -22,7 +22,7 @@ const assert = require("assert"); // Run the tests in a DOM environment. require("jsdom-global")(); -const APP_URL = process.env.APP_URL || "http://localhost:8787"; +const APP_URL = process.env.APP_URL || "http://localhost:3000"; describe("Auth API Tests", () => { const signupBody = {