Skip to content

run playgrounds in playwright #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 42 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1802473
start react playground in playwright
aehnh Jun 10, 2025
d0ba13c
run web-js and web-js-script playgrounds in playwright
aehnh Jun 10, 2025
57925a5
update workflows
aehnh Jun 10, 2025
fb9eaeb
prettier
aehnh Jun 10, 2025
4cff36f
install playground deps in the beginning of playwright test
aehnh Jun 10, 2025
7b8c53c
install root dependencies for test stage
aehnh Jun 10, 2025
0484cb2
unique cache step id
aehnh Jun 10, 2025
c96d854
remove root build from playwright (assume it's already done in local …
aehnh Jun 10, 2025
32a5184
remove unused function
aehnh Jun 10, 2025
ce3b689
remove unnecessary cache step
aehnh Jun 10, 2025
89f8a13
clean up stdout
aehnh Jun 10, 2025
10ce386
rpid is localhost
aehnh Jun 10, 2025
a65687c
run playground in connect playwright
aehnh Jun 16, 2025
b9c97fb
rename workflow file
aehnh Jun 16, 2025
5302534
remove comments
aehnh Jun 16, 2025
61da599
remove comments
aehnh Jun 16, 2025
7c84765
recover connect tests
aehnh Jun 16, 2025
3393866
matrix complete and connect tests
aehnh Jun 16, 2025
4893caf
move env vars out of matrix
aehnh Jun 16, 2025
67a2e81
configure playground connect secrets for ci e2e test pipeline
aehnh Jun 18, 2025
9b79c99
Merge branch 'develop' into webserver
aehnh Jun 18, 2025
878da31
remove outdated workflow
aehnh Jun 18, 2025
ebcf312
prettier
aehnh Jun 18, 2025
e48f846
debug logs for playground in playwright
aehnh Jun 18, 2025
dd1b193
install connect playground deps
aehnh Jun 18, 2025
211ed3d
disable next cache for concurrent connect playground builds
aehnh Jun 18, 2025
ec2bfc9
build on global setup
aehnh Jun 18, 2025
76d85db
rever cache disable
aehnh Jun 18, 2025
903391a
fix github secret env vars
aehnh Jun 18, 2025
18ee133
change useragent
aehnh Jun 18, 2025
7578057
use proper github secret name
aehnh Jun 18, 2025
04238cb
ignore playground app logs in playwright
aehnh Jun 18, 2025
cfa4e86
build playground on playwright global setup instead of building befor…
aehnh Jun 24, 2025
76bf296
use correct configs for nightly connect tests
aehnh Jun 24, 2025
ac06d73
prettier
aehnh Jun 24, 2025
23afd9e
remove unused command
aehnh Jun 24, 2025
a0547d2
change remaining vercel URLs to localhost
aehnh Jun 24, 2025
e67adf2
abstract playground url out as env var
aehnh Jun 24, 2025
87fa6b7
prettier
aehnh Jun 24, 2025
99494e3
modify nightly test workflow file
aehnh Jun 24, 2025
7db7bf0
change readme
aehnh Jun 24, 2025
991377d
add more randomness to logstream name
aehnh Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
283 changes: 0 additions & 283 deletions .github/workflows/deploy-playground-and-test.yml

This file was deleted.

102 changes: 102 additions & 0 deletions .github/workflows/deploy-playgrounds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Deploy Playground Apps to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
BRANCH_NAME_RAW: ${{ github.head_ref || github.ref_name }}

on:
pull_request:
push:
branches:
- develop

jobs:
deploy:
runs-on: ubuntu-24.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-force-1
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Install Dependencies
run: |
npm i
npm install lerna
npm install [email protected]
npm list

- name: Check ESLint Errors
run: npm run lint

- name: Check Prettier Formatting
run: npm run prettier:check

- name: Build SDKs
run: |
npm run build
npm run build:bundler:local

- name: Normalize branch name
run: |
echo "BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')" >> "$GITHUB_ENV"
shell: bash

- name: Deploy react playground to Vercel
run: |
npx vercel link --yes --project react-playground --scope corbado -t $VERCEL_TOKEN
npx vercel pull -t $VERCEL_TOKEN
npx vercel build -t $VERCEL_TOKEN
url="$(npx vercel deploy --prebuilt -t ${{ secrets.VERCEL_TOKEN }})"
npx vercel alias -S corbado -t ${{ secrets.VERCEL_TOKEN }} "$url" $BRANCH_NAME.react.playground.corbado.io
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_REACT_PLAYGROUND }}

- name: Deploy connect next playground to Vercel
run: |
npx vercel link --yes --project connect-next-playground --scope corbado -t $VERCEL_TOKEN
npx vercel pull --environment=preview -t $VERCEL_TOKEN
npx vercel build -t $VERCEL_TOKEN
url="$(npx vercel deploy --prebuilt -t ${{ secrets.VERCEL_TOKEN }})"
npx vercel alias -S corbado -t ${{ secrets.VERCEL_TOKEN }} "$url" $BRANCH_NAME.connect-next.playground.corbado.io
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_CONNECT_NEXT_PLAYGROUND }}

- name: Deploy web-js playground to Vercel
run: |
npx vercel link --yes --project web-js-playground --scope corbado -t $VERCEL_TOKEN
npx vercel pull -t $VERCEL_TOKEN
npx vercel build -t $VERCEL_TOKEN
url="$(npx vercel deploy --prebuilt -t ${{ secrets.VERCEL_TOKEN }})"
npx vercel alias -S corbado -t ${{ secrets.VERCEL_TOKEN }} "$url" $BRANCH_NAME.web-js.playground.corbado.io
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB_JS_PLAYGROUND }}

- name: Deploy web-js-script playground to Vercel
run: |
npx vercel link --yes --project web-js-script-playground --scope corbado -t $VERCEL_TOKEN
npx vercel pull -t $VERCEL_TOKEN
npx vercel build -t $VERCEL_TOKEN
url="$(npx vercel deploy --prebuilt -t ${{ secrets.VERCEL_TOKEN }})"
npx vercel alias -S corbado -t ${{ secrets.VERCEL_TOKEN }} "$url" $BRANCH_NAME.web-js-script.playground.corbado.io
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB_JS_SCRIPT_PLAYGROUND }}

Loading
Loading