test: validate M3 imports and locking on PostgreSQL
Add isolated PostgreSQL fixtures, two-session locking coverage, and a disposable remote Docker test runner. Correct the canonical-root fixture and document verified SQLite and PostgreSQL results.
This commit is contained in:
1 parent
9d277d9e72
commit
c1ef2ee97a
9 files changed
+420
-37
No files matched your search
@@ -0,0 +1,11 @@
|
||||
FROM php:8.4-cli-bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends libonig-dev libxml2-dev libpq-dev libsqlite3-dev unzip \
|
||||
&& docker-php-ext-install mbstring dom pdo_pgsql pdo_sqlite xmlwriter \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
|
||||
WORKDIR /workspace
|
||||
COPY composer.json composer.lock ./
|
||||
RUN composer install --no-interaction --prefer-dist --no-progress
|
||||
COPY . .
|
||||
CMD ["composer", "test"]
|
||||
@@ -0,0 +1,26 @@
|
||||
**
|
||||
!composer.json
|
||||
!composer.lock
|
||||
!src/**
|
||||
!tests/**
|
||||
!db/**
|
||||
!config/**
|
||||
!templates/**
|
||||
!public/index.php
|
||||
!bin/**
|
||||
!dev.sh
|
||||
!dev.ps1
|
||||
!phpunit.xml.dist
|
||||
!phpcs.xml.dist
|
||||
!phinx.php
|
||||
!.editorconfig
|
||||
!docker/**
|
||||
!docker-compose.yml
|
||||
!README.md
|
||||
!CONTRIBUTING.md
|
||||
!LICENSE
|
||||
!assets/**
|
||||
!package.json
|
||||
!package-lock.json
|
||||
!.dockerignore
|
||||
!.gitignore
|
||||
Reference in new issue
Block a user