main-updated #492
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel Serverless | |
on: | |
push: | |
repository_dispatch: | |
types: [main-updated] | |
jobs: | |
test: | |
name: Test Vercel Serverless | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install pnpm Dependencies | |
run: pnpm install && pnpm upgrade "@builder.io/qwik" "@builder.io/qwik-city" | |
- name: Deploy to Vercel Serverless | |
run: pnpm run deploy.vercel --token=${{ secrets.VERCEL_QWIK_CITY_E2E_TOKEN }} | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SERVERLESS_PROJECT_ID }} | |
- name: Install Playwright | |
run: npx playwright install chromium --with-deps | |
- name: Test Vercel Serverless MPA | |
run: pnpm run test.vercel-serverless.mpa | |
- name: Test Vercel Serverless SPA | |
run: pnpm run test.vercel-serverless.spa |