fix: #23 arr order #19
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: E2E | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Test: | |
uses: ./.github/workflows/tests.yaml | |
secrets: | |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }} | |
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }} | |
E2E: | |
runs-on: ubuntu-latest | |
environment: Preview | |
env: | |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}} | |
CLERK_SECRET_KEY: ${{secrets.CLERK_SECRET_KEY}} | |
CLERK_TEST_USER_EMAIL: ${{secrets.CLERK_TEST_USER_EMAIL}} | |
CLERK_TEST_USERNAME: ${{secrets.CLERK_TEST_USERNAME}} | |
DATABASE_URL: postgresql://yourusername:yourpassword@localhost:5432/yourdatabase | |
DIRECT_URL: postgresql://yourusername:yourpassword@localhost:5432/yourdatabase | |
CLERK_WEBHOOK_SECRET: mock-clerk-webhook-secret | |
STRIPE_SECRET_KEY: mock-stripe-secret-key | |
AWS_REGION: mock-aws-region | |
AWS_ACCESS_KEY_ID: mock-aws-access-key-id | |
AWS_SECRET_ACCESS_KEY: mock-aws-secret-access-key | |
AWS_PRIVATE_BUCKET_ARN: mock-aws-private-bucket-arn | |
AWS_PRIVATE_BUCKET_NAME: noos-private-assets | |
AWS_PUBLIC_BUCKET_ARN: mock-aws-public-bucket-arn | |
AWS_PUBLIC_BUCKET_NAME: noos-public-assets | |
AWS_PUBLIC_BUCKET_URL: mock-aws-public-bucket-url | |
STRIPE_WEBHOOK_SECRET: mock-stripe-webhook-secret | |
NEXT_PUBLIC_CLERK_SIGN_IN_URL: "/sign-in" | |
NEXT_PUBLIC_CLERK_SIGN_UP_URL: "/sign-up" | |
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL: "/country" | |
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL: "/dashboard/general" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: npm | |
- name: Install Dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run e2e tests | |
run: npx playwright test --quiet | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
- name: Stop Docker Compose Services | |
if: always() | |
run: docker compose down |