docs: update README.md to align with DEVELOPER_GUIDE.md #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: blogware_test | |
| MYSQL_USER: blogwareuser | |
| MYSQL_PASSWORD: userblogware | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: pdo, pdo_mysql | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Setup test database | |
| run: | | |
| mysql -h 127.0.0.1 -u root -proot -e "CREATE DATABASE IF NOT EXISTS blogware_test;" | |
| mysql -h 127.0.0.1 -u root -proot blogware_test < install/include/dbtable.php | |
| - name: Run PHPUnit | |
| run: src/lib/vendor/bin/phpunit --testdox --colors=never |