add psr7 testsuite to ci #267
This file contains 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: testing | |
on: push | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP 8.3 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
- name: composer install | |
run: composer install | |
- name: run tests | |
run: vendor/bin/phpunit | |
env: | |
DATABASE_DRIVER: none | |
psr-7: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP 8.3 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
- name: composer install | |
run: composer install | |
- name: run tests | |
run: vendor/bin/phpunit --testsuite=psr7 | |
env: | |
DATABASE_DRIVER: none | |
int-psql: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: docker | |
POSTGRES_USER: docker | |
POSTGRES_DB: test | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP 8.3 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
- name: composer install | |
run: composer install | |
- name: run tests | |
run: vendor/bin/phpunit --testsuite=integration | |
env: | |
DATABASE_DRIVER: postgres | |
int-sqlite: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP 8.3 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
- name: composer install | |
run: composer install | |
- name: run tests | |
run: vendor/bin/phpunit --testsuite=integration | |
env: | |
DATABASE_DRIVER: sqlite |