This commit is contained in:
commit
419e478489
2 files changed
-77
No files matched your search
@@ -1,45 +0,0 @@
|
||||
name: E2E Playwright Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
test-e2e:
|
||||
name: Run Full E2E & Security Suites
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Monorepo Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps chromium
|
||||
|
||||
- name: Run E2E Test Suite
|
||||
run: npx playwright test --project=chromium-desktop --project=admin-chromium
|
||||
env:
|
||||
CI: true
|
||||
NODE_ENV: test
|
||||
|
||||
- name: Upload Test Report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 14
|
||||
@@ -1,32 +0,0 @@
|
||||
name: Torob regression
|
||||
on:
|
||||
push:
|
||||
branches: [develop, main]
|
||||
pull_request:
|
||||
branches: [develop, main]
|
||||
jobs:
|
||||
torob-regression:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
torob-test-db:
|
||||
image: postgres:16-alpine
|
||||
env:
|
||||
POSTGRES_USER: torob
|
||||
POSTGRES_PASSWORD: disposable-fixture-only
|
||||
POSTGRES_DB: torob_test
|
||||
options: >-
|
||||
--health-cmd "pg_isready -U torob -d torob_test"
|
||||
--health-interval 5s
|
||||
--health-timeout 5s
|
||||
--health-retries 10
|
||||
container: node:20
|
||||
env:
|
||||
DATABASE_URL: postgresql://torob:disposable-fixture-only@torob-test-db:5432/torob_test
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install and generate isolated client
|
||||
run: cd backend && npm ci && npx prisma generate
|
||||
- name: Unit regressions
|
||||
run: cd backend && npm test -- --runInBand src/products/torob.controller.spec.ts
|
||||
- name: Disposable PostgreSQL integration
|
||||
run: cd backend && npx prisma db push --skip-generate && npx jest --config test/jest-torob.json --runInBand
|
||||
Reference in new issue
Block a user