imp: [BC] Reorganize and document the Errors #331
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
NODOCKER: true | |
APP_ENVIRONMENT: test | |
DB_HOST: localhost | |
DB_USERNAME: postgres | |
DB_PASSWORD: postgres | |
COVERAGE: --coverage-text | |
jobs: | |
build: | |
name: PHP ${{ matrix.php-versions }} CI on ${{ matrix.operating-system }} | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['8.2', '8.3'] | |
services: | |
postgres: | |
image: postgres:13-alpine | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: minz_test | |
ports: | |
- 5432/tcp | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
extensions: pdo, pdo_pgsql | |
- name: Install the dependencies | |
run: make install | |
- name: Run the linters | |
run: make lint | |
- name: Run the test suite (SQLite) | |
run: make test | |
env: | |
DB_DSN: 'sqlite::memory:' | |
- name: Run the test suite (PGSQL) | |
run: make test | |
env: | |
DB_DSN: pgsql:host=localhost;dbname=minz_test;port=${{ job.services.postgres.ports[5432] }} |