Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
33 changes: 33 additions & 0 deletions phpunit.xml.github
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="MigrationSnapshot Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>

<php>
<env name="DB_PASSWORD" value="secret"/>
</php>
</phpunit>