1 line
22 KiB
JSON
1 line
22 KiB
JSON
{"repo": "arieldrighi/tarotflavia", "files": {".github/workflows/e2e-manual.yml": {"6828fb9d1bad6b106d8da69a9ab5b05d4d2ded32": {"t": 1785747042.6851206, "n": 5704, "h": "5e943e6ba9a55c6c", "c": "name: E2E Tests (Manual Trigger)\n\n# Permite ejecutar E2E tests manualmente desde GitHub UI\n# Útil para: verificar E2E antes de merge crítico, testing de hotfix, validación de release\non:\n workflow_dispatch:\n inputs:\n branch:\n description: \"Branch to test (default: current branch)\"\n required: false\n default: \"\"\n maxWorkers:\n description: \"Max parallel workers (1=sequential, 2=parallel)\"\n required: false\n default: \"1\"\n type: choice\n options:\n - \"1\"\n - \"2\"\n\njobs:\n e2e-manual:\n name: E2E Tests on ${{ github.event.inputs.branch || github.ref_name }}\n runs-on: ubuntu-latest\n\n services:\n postgres:\n image: postgres:16-alpine\n env:\n POSTGRES_USER: tarot_e2e_user\n POSTGRES_PASSWORD: tarot_e2e_password_secure\n POSTGRES_DB: tarot_e2e\n ports:\n - 5436:5432\n options: >-\n --health-cmd pg_isready\n --health-interval 10s\n --health-timeout 5s\n --health-retries 5\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n ref: ${{ github.event.inputs.branch || github.ref }}\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: \"20\"\n cache: \"npm\"\n\n - name: Install dependencies\n run: npm ci\n\n - name: Run database migrations\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_e2e_user\n POSTGRES_PASSWORD: tarot_e2e_password_secure\n POSTGRES_DB: tarot_e2e\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_e2e_user\n TAROT_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_DB_NAME: tarot_e2e\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_e2e_user\n TAROT_E2E_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_E2E_DB_NAME: tarot_e2e\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n NODE_ENV: test\n run: npm run migration:run\n\n - name: Run E2E tests\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_e2e_user\n POSTGRES_PASSWORD: tarot_e2e_password_secure\n POSTGRES_DB: tarot_e2e\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_e2e_user\n TAROT_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_DB_NAME: tarot_e2e\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_e2e_user\n TAROT_E2E_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_E2E_DB_NAME: tarot_e2e\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n OPENAI_API_KEY: sk-test-key-for-ci-only-not-real-12345\n DEEPSEEK_API_KEY: sk-test-key-for-ci-only-not-real-12345\n NODE_ENV: test\n PORT: 3001\n RATE_LIMIT_TTL: 60\n RATE_LIMIT_MAX: 1000\n CI: true\n run: npm run test:e2e -- --maxWorkers=${{ github.event.inputs.maxWorkers || '1' }}\n\n - name: Upload E2E test results\n uses: actions/upload-artifact@v4\n if: failure()\n with:\n name: e2e-test-results-manual-${{ github.run_number }}\n path: backend/tarot-app/test-results\n retention-days: 7\n\n - name: Comment on PR (if from PR)\n uses: actions/github-script@v7\n if: github.event_name == 'pull_request' && failure()\n with:\n script: |\n github.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: '❌ E2E tests failed. Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'\n })\n\n - name: Success summary\n if: success()\n run: |\n echo \"✅ E2E Tests passed successfully!\"\n echo \"Branch: ${{ github.event.inputs.branch || github.ref_name }}\"\n echo \"Workers: ${{ github.event.inputs.maxWorkers || '1' }}\"\n echo \"Total suites: 41\"\n"}, "64a8b4d0cec27d1e6cbfe1f333c530468ea040c6": {"t": 1785769998.6536973, "n": 5704, "h": "5e943e6ba9a55c6c", "c": "name: E2E Tests (Manual Trigger)\n\n# Permite ejecutar E2E tests manualmente desde GitHub UI\n# Útil para: verificar E2E antes de merge crítico, testing de hotfix, validación de release\non:\n workflow_dispatch:\n inputs:\n branch:\n description: \"Branch to test (default: current branch)\"\n required: false\n default: \"\"\n maxWorkers:\n description: \"Max parallel workers (1=sequential, 2=parallel)\"\n required: false\n default: \"1\"\n type: choice\n options:\n - \"1\"\n - \"2\"\n\njobs:\n e2e-manual:\n name: E2E Tests on ${{ github.event.inputs.branch || github.ref_name }}\n runs-on: ubuntu-latest\n\n services:\n postgres:\n image: postgres:16-alpine\n env:\n POSTGRES_USER: tarot_e2e_user\n POSTGRES_PASSWORD: tarot_e2e_password_secure\n POSTGRES_DB: tarot_e2e\n ports:\n - 5436:5432\n options: >-\n --health-cmd pg_isready\n --health-interval 10s\n --health-timeout 5s\n --health-retries 5\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n ref: ${{ github.event.inputs.branch || github.ref }}\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: \"20\"\n cache: \"npm\"\n\n - name: Install dependencies\n run: npm ci\n\n - name: Run database migrations\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_e2e_user\n POSTGRES_PASSWORD: tarot_e2e_password_secure\n POSTGRES_DB: tarot_e2e\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_e2e_user\n TAROT_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_DB_NAME: tarot_e2e\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_e2e_user\n TAROT_E2E_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_E2E_DB_NAME: tarot_e2e\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n NODE_ENV: test\n run: npm run migration:run\n\n - name: Run E2E tests\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_e2e_user\n POSTGRES_PASSWORD: tarot_e2e_password_secure\n POSTGRES_DB: tarot_e2e\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_e2e_user\n TAROT_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_DB_NAME: tarot_e2e\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_e2e_user\n TAROT_E2E_DB_PASSWORD: tarot_e2e_password_secure\n TAROT_E2E_DB_NAME: tarot_e2e\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n OPENAI_API_KEY: sk-test-key-for-ci-only-not-real-12345\n DEEPSEEK_API_KEY: sk-test-key-for-ci-only-not-real-12345\n NODE_ENV: test\n PORT: 3001\n RATE_LIMIT_TTL: 60\n RATE_LIMIT_MAX: 1000\n CI: true\n run: npm run test:e2e -- --maxWorkers=${{ github.event.inputs.maxWorkers || '1' }}\n\n - name: Upload E2E test results\n uses: actions/upload-artifact@v4\n if: failure()\n with:\n name: e2e-test-results-manual-${{ github.run_number }}\n path: backend/tarot-app/test-results\n retention-days: 7\n\n - name: Comment on PR (if from PR)\n uses: actions/github-script@v7\n if: github.event_name == 'pull_request' && failure()\n with:\n script: |\n github.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: '❌ E2E tests failed. Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'\n })\n\n - name: Success summary\n if: success()\n run: |\n echo \"✅ E2E Tests passed successfully!\"\n echo \"Branch: ${{ github.event.inputs.branch || github.ref_name }}\"\n echo \"Workers: ${{ github.event.inputs.maxWorkers || '1' }}\"\n echo \"Total suites: 41\"\n"}, "1b1929445174adfdd64129ce4a955b4e57197a38": {"t": 1785770006.0857205, "n": 5648, "h": "1e1f17bd4e5489f0", "c": "name: E2E Tests (Manual Trigger)\n\n# Permite ejecutar E2E tests manualmente desde GitHub UI\n# Útil para: verificar E2E antes de merge crítico, testing de hotfix, validación de release\non:\n workflow_dispatch:\n inputs:\n branch:\n description: \"Branch to test (default: current branch)\"\n required: false\n default: \"\"\n maxWorkers:\n description: \"Max parallel workers (1=sequential, 2=parallel)\"\n required: false\n default: \"1\"\n type: choice\n options:\n - \"1\"\n - \"2\"\n\njobs:\n e2e-manual:\n name: E2E Tests on ${{ github.event.inputs.branch || github.ref_name }}\n runs-on: ubuntu-latest\n\n services:\n postgres:\n image: postgres:16-alpine\n env:\n POSTGRES_USER: tarot_test_user\n POSTGRES_PASSWORD: tarot_test_pass\n POSTGRES_DB: tarot_test\n ports:\n - 5436:5432\n options: >-\n --health-cmd pg_isready\n --health-interval 10s\n --health-timeout 5s\n --health-retries 5\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n ref: ${{ github.event.inputs.branch || github.ref }}\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: \"20\"\n cache: \"npm\"\n\n - name: Install dependencies\n run: npm ci\n\n - name: Run database migrations\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_test_user\n POSTGRES_PASSWORD: tarot_test_pass\n POSTGRES_DB: tarot_test\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_test_user\n TAROT_DB_PASSWORD: tarot_test_pass\n TAROT_DB_NAME: tarot_test\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_test_user\n TAROT_E2E_DB_PASSWORD: tarot_test_pass\n TAROT_E2E_DB_NAME: tarot_test\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n NODE_ENV: test\n run: npm run migration:run\n\n - name: Run E2E tests\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_test_user\n POSTGRES_PASSWORD: tarot_test_pass\n POSTGRES_DB: tarot_test\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_test_user\n TAROT_DB_PASSWORD: tarot_test_pass\n TAROT_DB_NAME: tarot_test\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_test_user\n TAROT_E2E_DB_PASSWORD: tarot_test_pass\n TAROT_E2E_DB_NAME: tarot_test\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n OPENAI_API_KEY: sk-test-key-for-ci-only-not-real-12345\n DEEPSEEK_API_KEY: sk-test-key-for-ci-only-not-real-12345\n NODE_ENV: test\n PORT: 3001\n RATE_LIMIT_TTL: 60\n RATE_LIMIT_MAX: 1000\n CI: true\n run: npm run test:e2e -- --maxWorkers=${{ github.event.inputs.maxWorkers || '1' }}\n\n - name: Upload E2E test results\n uses: actions/upload-artifact@v4\n if: failure()\n with:\n name: e2e-test-results-manual-${{ github.run_number }}\n path: backend/tarot-app/test-results\n retention-days: 7\n\n - name: Comment on PR (if from PR)\n uses: actions/github-script@v7\n if: github.event_name == 'pull_request' && failure()\n with:\n script: |\n github.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: '❌ E2E tests failed. Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'\n })\n\n - name: Success summary\n if: success()\n run: |\n echo \"✅ E2E Tests passed successfully!\"\n echo \"Branch: ${{ github.event.inputs.branch || github.ref_name }}\"\n echo \"Workers: ${{ github.event.inputs.maxWorkers || '1' }}\"\n echo \"Total suites: 41\"\n"}, "2b488ee1f1817df47b46b7d13de1d9aae7e40407": {"t": 1785770011.5711198, "n": 4716, "h": "dc336d6290ca755b", "c": "name: E2E Tests (Manual Trigger)\n\n# Permite ejecutar E2E tests manualmente desde GitHub UI\n# Útil para: verificar E2E antes de merge crítico, testing de hotfix, validación de release\non:\n workflow_dispatch:\n inputs:\n branch:\n description: 'Branch to test (default: current branch)'\n required: false\n default: ''\n maxWorkers:\n description: 'Max parallel workers (1=sequential, 2=parallel)'\n required: false\n default: '1'\n type: choice\n options:\n - '1'\n - '2'\n\njobs:\n e2e-manual:\n name: E2E Tests on ${{ github.event.inputs.branch || github.ref_name }}\n runs-on: ubuntu-latest\n\n services:\n postgres:\n image: postgres:16-alpine\n env:\n POSTGRES_USER: tarot_test_user\n POSTGRES_PASSWORD: tarot_test_pass\n POSTGRES_DB: tarot_test\n ports:\n - 5436:5432\n options: >-\n --health-cmd pg_isready\n --health-interval 10s\n --health-timeout 5s\n --health-retries 5\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n ref: ${{ github.event.inputs.branch || github.ref }}\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: \"20\"\n cache: 'npm'\n\n - name: Install dependencies\n run: npm ci\n\n - name: Run database migrations\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_test_user\n POSTGRES_PASSWORD: tarot_test_pass\n POSTGRES_DB: tarot_test\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_test_user\n TAROT_DB_PASSWORD: tarot_test_pass\n TAROT_DB_NAME: tarot_test\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_test_user\n TAROT_E2E_DB_PASSWORD: tarot_test_pass\n TAROT_E2E_DB_NAME: tarot_test\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n NODE_ENV: test\n run: npm run migration:run\n\n - name: Run E2E tests\n working-directory: ./backend/tarot-app\n env:\n POSTGRES_HOST: localhost\n POSTGRES_PORT: 5436\n POSTGRES_USER: tarot_test_user\n POSTGRES_PASSWORD: tarot_test_pass\n POSTGRES_DB: tarot_test\n TAROT_DB_HOST: localhost\n TAROT_DB_PORT: 5436\n TAROT_DB_USER: tarot_test_user\n TAROT_DB_PASSWORD: tarot_test_pass\n TAROT_DB_NAME: tarot_test\n TAROT_E2E_DB_HOST: localhost\n TAROT_E2E_DB_PORT: 5436\n TAROT_E2E_DB_USER: tarot_test_user\n TAROT_E2E_DB_PASSWORD: tarot_test_pass\n TAROT_E2E_DB_NAME: tarot_test\n TAROT_E2E_DB_SYNCHRONIZE: false\n TAROT_E2E_DB_LOGGING: false\n JWT_SECRET: test-jwt-secret-for-ci-only-minimum-32-characters-required\n JWT_EXPIRES_IN: 1h\n GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}\n OPENAI_API_KEY: sk-test-key-for-ci-only-not-real-12345\n DEEPSEEK_API_KEY: sk-test-key-for-ci-only-not-real-12345\n NODE_ENV: test\n PORT: 3001\n RATE_LIMIT_TTL: 60\n RATE_LIMIT_MAX: 1000\n CI: true\n run: npm run test:e2e -- --maxWorkers=${{ github.event.inputs.maxWorkers || '1' }}\n\n - name: Upload E2E test results\n uses: actions/upload-artifact@v4\n if: failure()\n with:\n name: e2e-test-results-manual-${{ github.run_number }}\n path: backend/tarot-app/test-results\n retention-days: 7\n\n - name: Comment on PR (if from PR)\n uses: actions/github-script@v7\n if: github.event_name == 'pull_request' && failure()\n with:\n script: |\n github.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: '❌ E2E tests failed. Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'\n })\n\n - name: Success summary\n if: success()\n run: |\n echo \"✅ E2E Tests passed successfully!\"\n echo \"Branch: ${{ github.event.inputs.branch || github.ref_name }}\"\n echo \"Workers: ${{ github.event.inputs.maxWorkers || '1' }}\"\n echo \"Total suites: 41\"\n"}}}} |