mirror of
https://github.com/saltbo/zpan.git
synced 2026-10-29 18:05:37 +08:00
test(cloud): add tunnel-backed store e2e
This commit is contained in:
@@ -60,7 +60,11 @@ jobs:
|
||||
path: node_modules
|
||||
key: node-modules-${{ hashFiles('package-lock.json') }}
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npm run e2e
|
||||
- name: Install cloudflared
|
||||
run: |
|
||||
curl -L --fail --output cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
|
||||
chmod +x cloudflared
|
||||
- run: CLOUDFLARED_BIN=./cloudflared npm run e2e:cloud -- --runtime node
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
@@ -82,9 +86,11 @@ jobs:
|
||||
path: node_modules
|
||||
key: node-modules-${{ hashFiles('package-lock.json') }}
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: echo "BETTER_AUTH_SECRET=ci-test-secret-that-is-at-least-32-chars" > .dev.vars
|
||||
- run: npx wrangler d1 migrations apply DB --local
|
||||
- run: E2E_RUNTIME=cf npm run e2e
|
||||
- name: Install cloudflared
|
||||
run: |
|
||||
curl -L --fail --output cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
|
||||
chmod +x cloudflared
|
||||
- run: CLOUDFLARED_BIN=./cloudflared npm run e2e:cloud:cf
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user