Skip to content

Commit

Permalink
🏎
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 4, 2023
1 parent 6695309 commit e149925
Show file tree
Hide file tree
Showing 22 changed files with 18,842 additions and 88 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,37 @@ jobs:
- 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 NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Build AWS
run: npm run build.aws
run: pnpm run build.aws

- name: Install Playwright
run: npx playwright install chromium --with-deps

- name: Test AWS Offline Server MPA
run: npm run test.aws-offline.mpa
run: pnpm run test.aws-offline.mpa

- name: Test AWS Offline Server SPA
run: npm run test.aws-offline.spa
run: pnpm run test.aws-offline.spa

- name: Configura AWS credentials
run: npx serverless config credentials --provider aws --key ${{ secrets.AWS_KEY }} --secret ${{ secrets.AWS_SECRET }}

- name: Deploy AWS lambda
run: npm run deploy.aws
run: pnpm run deploy.aws

- name: Test AWS Server MPA
run: npm run test.aws.mpa
run: pnpm run test.aws.mpa

- name: Test AWS Server SPA
run: npm run test.aws.spa
run: pnpm run test.aws.spa
17 changes: 10 additions & 7 deletions .github/workflows/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
platform: [windows-latest]
platform: [ubuntu-latest]

name: Test Azure ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
Expand All @@ -20,25 +20,28 @@ jobs:
- 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 NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Build Azure
run: npm run build.azure
run: pnpm run build.azure

- name: Run
run: npm run serve.azure
run: pnpm run serve.azure

- name: Install Playwright
run: npx playwright install chromium --with-deps

- name: Test Azure Server MPA
run: npm run test.azure.mpa
run: pnpm run test.azure.mpa

- name: Test Azure Server SPA
run: npm run test.azure.spa
run: pnpm run test.azure.spa
8 changes: 5 additions & 3 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'pnpm'

- name: Install NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Run Create Qwik CLI
run: node ./tests/cli.js
13 changes: 8 additions & 5 deletions .github/workflows/cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ jobs:
- 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 NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Build Cloudflare
run: npm run build.cloudflare
run: pnpm run build.cloudflare

- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@1
Expand All @@ -40,7 +43,7 @@ jobs:
run: npx playwright install chromium --with-deps

- name: Test Cloudflare Server MPA
run: npm run test.cloudflare.mpa
run: pnpm run test.cloudflare.mpa

- name: Test Cloudflare Server SPA
run: npm run test.cloudflare.spa
run: pnpm run test.cloudflare.spa
13 changes: 8 additions & 5 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,30 @@ jobs:
- 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: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Install NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Install Playwright
run: npx playwright install chromium --with-deps

- name: Build Deno Server
run: npm run build.deno
run: pnpm run build.deno

- name: Test Deno Server MPA
run: npm run test.deno.mpa
run: pnpm run test.deno.mpa

- name: Test Deno Server SPA
run: npm run test.deno.spa
run: pnpm run test.deno.spa
13 changes: 8 additions & 5 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ jobs:
- 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 NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Deploy to Netlify
run: npm run deploy.netlify
run: pnpm run deploy.netlify
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand All @@ -32,7 +35,7 @@ jobs:
run: npx playwright install chromium --with-deps

- name: Test Netlify Server MPA
run: npm run test.netlify.mpa
run: pnpm run test.netlify.mpa

- name: Test Netlify Server SPA
run: npm run test.netlify.spa
run: pnpm run test.netlify.spa
47 changes: 25 additions & 22 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,73 +17,76 @@ jobs:
- 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 NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Run Vitest
run: npm run test.unit
run: pnpm run test.unit

- name: Run TypeChecker
run: npm run build.types
run: pnpm run build.types

- name: Run Linter
run: npm run lint
run: pnpm run lint

- name: Install Playwright
run: npx playwright install chromium --with-deps

- name: Test Dev Server MPA
run: npm run test.dev.mpa
run: pnpm run test.dev.mpa

- name: Test Dev Server SPA
run: npm run test.dev.spa
run: pnpm run test.dev.spa

- name: Build Vite Preview Server
run: npm run build.preview
run: pnpm run build.preview

- name: Test Vite Preview Server MPA
run: npm run test.preview.mpa
run: pnpm run test.preview.mpa

- name: Test Vite Preview Server SPA
run: npm run test.preview.spa
run: pnpm run test.preview.spa

- name: Clear dist dir
run: npm run clean.dist
run: pnpm run clean.dist

- name: Build Express Server
run: npm run build.express
run: pnpm run build.express

- name: Test Express Server MPA
run: npm run test.express.mpa
run: pnpm run test.express.mpa

- name: Test Express Server SPA
run: npm run test.express.spa
run: pnpm run test.express.spa

- name: Clear dist dir
run: npm run clean.dist
run: pnpm run clean.dist

- name: Build Node Server
run: npm run build.node
run: pnpm run build.node

- name: Test Node Server MPA
run: npm run test.node.mpa
run: pnpm run test.node.mpa

- name: Test Node Server SPA
run: npm run test.node.spa
run: pnpm run test.node.spa

- name: Clear dist dir
run: npm run clean.dist
run: pnpm run clean.dist

- name: Build Static Server
run: npm run build.static
run: pnpm run build.static

- name: Test Static Server MPA
run: npm run test.static.mpa
run: pnpm run test.static.mpa

- name: Test Static Server SPA
run: npm run test.static.spa
run: pnpm run test.static.spa
13 changes: 8 additions & 5 deletions .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ jobs:
- 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 NPM Dependencies
run: npm install
- name: Install pnpm Dependencies
run: pnpm install

- name: Deploy to Vercel
run: npm run deploy.vercel -- --token=${{ secrets.VERCEL_QWIK_CITY_E2E_TOKEN }}
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_PROJECT_ID }}
Expand All @@ -31,7 +34,7 @@ jobs:
run: npx playwright install chromium --with-deps

- name: Test Vercel Server MPA
run: npm run test.vercel.mpa
run: pnpm run test.vercel.mpa

- name: Test Vercel Server SPA
run: npm run test.vercel.spa
run: pnpm run test.vercel.spa
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Commits to this repo will trigger each [workflow](https://github.com/BuilderIO/qwik-city-e2e/tree/main/.github/workflows), which will build and test on each server. The Node workflow tests the `dev`, `preview` and `express` Nodejs servers.

The [package.json](https://github.com/BuilderIO/qwik-city-e2e/blob/main/package.json) npm installs the build artifacts committed to [qwik-build](https://github.com/BuilderIO/qwik-build) and [qwik-city-build](https://github.com/BuilderIO/qwik-city-build). Update the commit hash in version for the `dependencies` of `@builder.io/qwik` and `@builder.io/qwik-city`.
The [package.json](https://github.com/BuilderIO/qwik-city-e2e/blob/main/package.json) pnpm installs the build artifacts committed to [qwik-build](https://github.com/BuilderIO/qwik-build) and [qwik-city-build](https://github.com/BuilderIO/qwik-city-build). Update the commit hash in version for the `dependencies` of `@builder.io/qwik` and `@builder.io/qwik-city`.

## External Servers

Expand All @@ -28,17 +28,17 @@ https://qwik-city-e2e.vercel.app/app/

### Dev

npm run dev
pnpm run dev
http://127.0.0.1:3000/app/

### Preview

npm run build.preview
npm run serve.preview
pnpm run build.preview
pnpm run serve.preview
http://127.0.0.1:3001/app/

### Express

npm run build.express
npm run serve.express
pnpm run build.express
pnpm run serve.express
http://127.0.0.1:3002/app/

0 comments on commit e149925

Please sign in to comment.