build(deps): bump nodemailer from 7.0.13 to 8.0.5 #1495
This file contains hidden or 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 Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - develop | |
| - staging | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| jobs: | |
| E2E: | |
| name: E2E (${{ matrix.browser }}) | |
| if: github.event.pull_request.draft == false | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chromium, firefox, webkit] | |
| env: | |
| VITE_BASE_URL: http://localhost:3000 | |
| VITE_ENV_NAME: tests | |
| DATABASE_URL: postgres://startui:startui@localhost:5432/startui | |
| VITE_IS_DEMO: false | |
| AUTH_SECRET: fyXjLxjXJowjicI2BAjxOaUsQd1QafdegZDciJE/xM8= | |
| EMAIL_SERVER: smtp://username:password@localhost:1025 | |
| EMAIL_FROM: Start UI <noreply@example.com> | |
| S3_HOST: localhost:9000 | |
| S3_BUCKET_NAME: default | |
| S3_ACCESS_KEY_ID: startui-access-key | |
| S3_SECRET_ACCESS_KEY: startui-secret-key | |
| S3_SECURE: false | |
| S3_FORCE_PATH_STYLE: true | |
| DOCKER_MINIO_USERNAME: minioadmin | |
| DOCKER_MINIO_PASSWORD: minioadmin | |
| VITE_S3_BUCKET_PUBLIC_URL: http://localhost:9000/default | |
| services: | |
| postgres: | |
| image: postgres:16.1 | |
| env: | |
| POSTGRES_PASSWORD: startui | |
| POSTGRES_USER: startui | |
| POSTGRES_DB: startui | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| maildev: | |
| image: maildev/maildev:2.2.1 | |
| options: >- | |
| --health-cmd "wget --spider --no-verbose --tries=1 -T 3 http://localhost:1080/healthz" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 1025:1025 | |
| - 1080:1080 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: ./.github/actions/setup-pnpm | |
| with: | |
| node-version: 24 | |
| - name: Setup Playwright | |
| uses: ./.github/actions/setup-playwright | |
| with: | |
| browsers: chromium ${{ matrix.browser }} | |
| - name: Start MinIO server | |
| run: | | |
| docker run -d \ | |
| --name minio \ | |
| -p 9000:9000 \ | |
| -p 9001:9001 \ | |
| -e MINIO_ROOT_USER=minioadmin \ | |
| -e MINIO_ROOT_PASSWORD=minioadmin \ | |
| minio/minio:RELEASE.2025-07-23T15-54-02Z-cpuv1 \ | |
| server /data --console-address :9001 | |
| # Wait for MinIO to be ready | |
| until curl -sf http://localhost:9000/minio/health/live; do | |
| echo "Waiting for MinIO..." | |
| sleep 2 | |
| done | |
| echo "MinIO is ready" | |
| - name: Setup MinIO bucket | |
| run: | | |
| # Install MinIO client | |
| curl -sSL https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc | |
| chmod +x /usr/local/bin/mc | |
| # Configure MinIO client | |
| mc alias set minio http://localhost:9000 minioadmin minioadmin | |
| # Create user with access key | |
| mc admin user add minio $S3_ACCESS_KEY_ID $S3_SECRET_ACCESS_KEY | |
| mc admin policy attach minio readwrite --user $S3_ACCESS_KEY_ID | |
| # Create bucket and set permissions | |
| mc mb --ignore-existing minio/$S3_BUCKET_NAME | |
| mc anonymous set download minio/$S3_BUCKET_NAME | |
| - name: Migrate database | |
| run: pnpm db:push | |
| - name: Add default data into database | |
| run: pnpm db:seed | |
| - name: Run Playwright tests | |
| run: pnpm exec playwright test --project=${{ matrix.browser }} | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report-${{ matrix.browser }} | |
| path: playwright-report/ | |
| retention-days: 30 |