From 86a799f65c54fb1e45fcde4d6f341597437b05d0 Mon Sep 17 00:00:00 2001 From: Lacey-Anne Sanderson Date: Wed, 8 Nov 2023 11:49:03 -0600 Subject: [PATCH 1/2] Update paths to match changes in Tripal PR #1681 --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index e5b8e0f..5004ee9 100644 --- a/action.yml +++ b/action.yml @@ -65,7 +65,7 @@ runs: shell: bash run: | docker run --publish=80:80 --name=tripaldocker -tid \ - --volume=`pwd`:/var/www/drupal9/web/modules/contrib/${{ inputs.directory-name }} testing:localdocker + --volume=`pwd`:/var/www/drupal/web/modules/contrib/${{ inputs.directory-name }} testing:localdocker # Install the modules - name: Install our package in Docker if: "${{ inputs.modules != '' }}" @@ -78,12 +78,12 @@ runs: shell: bash env: SIMPLETEST_BASE_URL: "http://localhost" - SIMPLETEST_DB: "pgsql://drupaladmin:drupal9developmentonlylocal@localhost/sitedb" - BROWSER_OUTPUT_DIRECTORY: "/var/www/drupal9/web/sites/default/files/simpletest" + SIMPLETEST_DB: "pgsql://drupaladmin:drupaldevelopmentonlylocal@localhost/sitedb" + BROWSER_OUTPUT_DIRECTORY: "/var/www/drupal/web/sites/default/files/simpletest" run: | docker exec tripaldocker service postgresql restart docker exec -e SIMPLETEST_BASE_URL=$SIMPLETEST_BASE_URL \ -e SIMPLETEST_DB=$SIMPLETEST_DB \ -e BROWSER_OUTPUT_DIRECTORY=$BROWSER_OUTPUT_DIRECTORY \ - --workdir=/var/www/drupal9/web/modules/contrib/${{ inputs.directory-name }} \ + --workdir=/var/www/drupal/web/modules/contrib/${{ inputs.directory-name }} \ tripaldocker phpunit ${{ inputs.phpunit-command-options }} From afde2608e827a870e3aaa51abd53fb67dfbfda4c Mon Sep 17 00:00:00 2001 From: Lacey-Anne Sanderson Date: Wed, 8 Nov 2023 11:58:39 -0600 Subject: [PATCH 2/2] Update paths in readme as well. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cf9d7f4..21e726c 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ A string to be appended to the end of the PHPUnit command. See the following exa - `--testsuite MyCustomTestSuite`: only run tests in a specific Test suite as configured in your phpunit.xml. - `--group MyGroupName`: runs tests with the "@group MyGroupName" added to their docblock headers. - `--filter testMySpecificMethod`: runs the testMySpecificMethod method specifically. This option can also be used to more generally filter your tests using regular expressions. -- `--coverage-clover /var/www/drupal9/web/modules/mydir/clover.xml`: to run code coverage with the output format matching that for CodeClimate and place the file in a specific directory. +- `--coverage-clover /var/www/drupal/web/modules/mydir/clover.xml`: to run code coverage with the output format matching that for CodeClimate and place the file in a specific directory. For a full listing of options for the PHPUnit [see the docs](https://docs.phpunit.de/en/9.6/textui.html).