Skip to content

πŸ“Ÿ

πŸ“Ÿ #52

Workflow file for this run

name: AWS Server
on:
push:
repository_dispatch:
types: [main-updated]
jobs:
test:
name: Test AWS Server
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: Build AWS
run: pnpm run build.aws
- name: Install Playwright
run: npx playwright install chromium --with-deps
- name: Test AWS Offline Server MPA
run: pnpm run test.aws-offline.mpa
- name: Test AWS Offline Server 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: pnpm run deploy.aws
- name: Test AWS Server MPA
run: pnpm run test.aws.mpa
- name: Test AWS Server SPA
run: pnpm run test.aws.spa