Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix case insensitive column names #166

Merged
merged 22 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
21 changes: 2 additions & 19 deletions .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,9 @@ jobs:
ini-values: memory_limit=-1
extensions: pdo_sqlite

- name: "Cache dependencies"
uses: "actions/cache@v2"
- uses: "ramsey/composer-install@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"
dependency-versions: ${{ matrix.dependencies }}

- name: "Coding Standard"
run: "vendor/bin/phpcs"
200 changes: 200 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Integration tests"

on:
pull_request:
push:
branches:
- "[0-9]+.[0-9]+.x"

jobs:
postgres:
name: "Postgres"

runs-on: ${{ matrix.operating-system }}

services:
postgres:
# Docker Hub image
image: "postgres:${{ matrix.postgres-version }}"
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: eventstore
options: >-
--health-cmd "pg_isready"
ports:
- "5432:5432"

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.0"
operating-system:
- "ubuntu-latest"
postgres-version:
- "9.4"
- "13"
- "14"

env:
DB_URL: 'postgresql://postgres:postgres@localhost:5432/eventstore?charset=utf8'

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_sqlite

- uses: "ramsey/composer-install@v2"
with:
dependency-versions: ${{ matrix.dependencies }}

- name: "Tests"
run: "vendor/bin/phpunit --testsuite=integration"

mariadb:
name: "mariadb"

runs-on: ${{ matrix.operating-system }}

services:
mariadb:
image: "mariadb:${{ matrix.mariadb-version }}"
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: "eventstore"

options: >-
--health-cmd "mysqladmin ping --silent"
ports:
- "3306:3306"

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.0"
operating-system:
- "ubuntu-latest"
mariadb-version:
- "10.0"
- "10.2"
- "10.5"

env:
DB_URL: 'mysql://root@127.0.0.1:3306/eventstore?charset=utf8'

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_mysql

- uses: "ramsey/composer-install@v2"
with:
dependency-versions: ${{ matrix.dependencies }}

- name: "Tests"
run: "vendor/bin/phpunit --testsuite=integration"

mysql:
name: "mysql"

runs-on: ${{ matrix.operating-system }}

services:
mysql:
image: "mysql:${{ matrix.mysql-version }}"

env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: "eventstore"

options: >-
--health-cmd "mysqladmin ping --silent"
ports:
- "3306:3306"

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.0"
operating-system:
- "ubuntu-latest"
mysql-version:
- "5.7"
- "8.0"

env:
DB_URL: 'mysql://root@127.0.0.1:3306/eventstore?charset=utf8'

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_mysql

- uses: "ramsey/composer-install@v2"
with:
dependency-versions: ${{ matrix.dependencies }}

- name: "Tests"
run: "vendor/bin/phpunit --testsuite=integration"

sqlite:
name: "Sqlite"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.0"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_sqlite

- uses: "ramsey/composer-install@v2"
with:
dependency-versions: ${{ matrix.dependencies }}

- name: "Tests"
run: "vendor/bin/phpunit --testsuite=integration"
21 changes: 2 additions & 19 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,9 @@ jobs:
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: "Cache dependencies"
uses: "actions/cache@v2"
- uses: "ramsey/composer-install@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"
dependency-versions: ${{ matrix.dependencies }}

- name: "Infection"
run: "vendor/bin/infection"
Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,9 @@ jobs:
ini-values: memory_limit=-1
extensions: pdo_sqlite

- name: "Cache dependencies"
uses: "actions/cache@v2"
- uses: "ramsey/composer-install@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"
dependency-versions: ${{ matrix.dependencies }}

- name: "PHPStan"
run: "vendor/bin/phpstan analyse"
64 changes: 0 additions & 64 deletions .github/workflows/phpunit.yml

This file was deleted.

21 changes: 2 additions & 19 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,9 @@ jobs:
ini-values: memory_limit=-1
extensions: pdo_sqlite

- name: "Cache dependencies"
uses: "actions/cache@v2"
- uses: "ramsey/composer-install@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"
dependency-versions: ${{ matrix.dependencies }}

- name: "psalm"
run: "vendor/bin/psalm --shepherd --stats"
Loading