From 3ee6455b21e24dfe57cc5cfddebc16555d12ee7a Mon Sep 17 00:00:00 2001 From: "Paul R. Rogers" Date: Wed, 24 Nov 2021 00:08:26 -0500 Subject: [PATCH] Further attempt to use non-blank password for GHA. --- .github/workflows/php.yml | 7 +++---- phpunit.xml.github | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 phpunit.xml.github diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 0c25c95..039397d 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -17,8 +17,7 @@ jobs: env: POSTGRES_DB: forge POSTGRES_USER: forge - # HACK: TestBench seems to assume blank password, at least w/GHA. - POSTGRES_HOST_AUTH_METHOD: trust + POSTGRES_PASSWORD: secret options: >- --health-cmd pg_isready --health-interval 10s @@ -34,7 +33,7 @@ jobs: run: | sudo /etc/init.d/mysql start mysql -e 'CREATE DATABASE forge;' --user=root --password=root - mysql -e "CREATE USER 'forge'@'localhost' IDENTIFIED BY '';" --user=root --password=root + mysql -e "CREATE USER 'forge'@'localhost' IDENTIFIED BY 'secret';" --user=root --password=root mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'forge'@'localhost';" --user=root --password=root - uses: actions/checkout@v2 @@ -55,4 +54,4 @@ jobs: run: composer install --prefer-dist --no-progress - name: Run test suite - run: composer run-script test + run: vendor/bin/phpunit --configuration phpunit.xml.github diff --git a/phpunit.xml.github b/phpunit.xml.github new file mode 100644 index 0000000..19df89c --- /dev/null +++ b/phpunit.xml.github @@ -0,0 +1,33 @@ + + + + + tests + + + + + src/ + + + + + + + + + + + + + +