3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Use phpunit instead of paratest.

PostgreSQL tests fail because Drupal core patch is trying to install pg_trgm
extension in parallel multiple times.

Failed to run installer database tasks: Drupal could not check for the pg_trgm extension: SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "pg_extension_name_index"
DETAIL:  Key (extname)=(pg_trgm) already exists.: CREATE EXTENSION IF NOT EXISTS pg_trgm;
This commit is contained in:
Michael Stenta 2023-10-05 19:30:41 -04:00
parent 7c73c28626
commit 6a9c872e9b
2 changed files with 1 additions and 5 deletions

View file

@ -92,13 +92,10 @@ jobs:
include: include:
- dbms: pgsql - dbms: pgsql
DB_URL: pgsql://farm:farm@db/farm DB_URL: pgsql://farm:farm@db/farm
processes: auto
- dbms: mariadb - dbms: mariadb
DB_URL: mysql://farm:farm@db/farm DB_URL: mysql://farm:farm@db/farm
processes: auto
- dbms: sqlite - dbms: sqlite
DB_URL: sqlite://localhost/sites/default/files/db.sqlite DB_URL: sqlite://localhost/sites/default/files/db.sqlite
processes: 1
steps: steps:
- name: Print test matrix variables - name: Print test matrix variables
run: echo "matrix.dbms=${{ matrix.dbms }}, matrix.DB_URL=${{ matrix.DB_URL }}" run: echo "matrix.dbms=${{ matrix.dbms }}, matrix.DB_URL=${{ matrix.DB_URL }}"
@ -126,7 +123,7 @@ jobs:
# so waiting for that lets us know it is safe to start the tests # so waiting for that lets us know it is safe to start the tests
run: until [ -f ./www/www-container-fs-ready ]; do sleep 0.1; done run: until [ -f ./www/www-container-fs-ready ]; do sleep 0.1; done
- name: Run PHPUnit tests - name: Run PHPUnit tests
run: docker compose exec -u www-data -T www paratest -vv --processes=${{ matrix.processes }} /opt/drupal/web/profiles/farm run: docker compose exec -u www-data -T www phpunit --verbose /opt/drupal/web/profiles/farm
- name: Test Drush site install with all modules - name: Test Drush site install with all modules
run: docker compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all' run: docker compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all'
release: release:

View file

@ -7,7 +7,6 @@
"behat/mink": "^1.10", "behat/mink": "^1.10",
"behat/mink-browserkit-driver": "^2.1", "behat/mink-browserkit-driver": "^2.1",
"behat/mink-selenium2-driver": "^1.6", "behat/mink-selenium2-driver": "^1.6",
"brianium/paratest": "^6",
"drupal/coder": "^8.3", "drupal/coder": "^8.3",
"mglaman/phpstan-drupal": "^1.1", "mglaman/phpstan-drupal": "^1.1",
"mikey179/vfsstream": "^1.6", "mikey179/vfsstream": "^1.6",