Skip to content

Commit 5e2f3bb

Browse files
authored
Merge branch 'master' into feature/triggers
2 parents f927005 + 28da413 commit 5e2f3bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1579
-11033
lines changed

.github/auto_assign.yml

-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ numberOfReviewers: 1
44

55
reviewers:
66
- pvsaitpe
7-
- zlob
87

98
addAssignees: true
109

1110
assignees:
1211
- pvsaintpe
13-
- zlob
1412

1513
numberOfAssignees: 1
1614

.github/labeler.yml

-47
This file was deleted.

.github/release-drafter.yml

-14
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,10 @@ version-resolver:
3939
major:
4040
labels:
4141
- major
42-
- refactoring
4342
minor:
4443
labels:
45-
- feature
4644
- minor
47-
- type:helpers
48-
- type:indexes
49-
- type:routines
50-
- type:schema
51-
- type:compilers
5245
patch:
5346
labels:
5447
- patch
55-
- type:build
56-
- bug
57-
- bugfix
58-
- hotfix
59-
- fix
60-
- theme:docs
61-
- analysis
6248
default: patch

.github/workflows/auto_approve.yml

-14
This file was deleted.

.github/workflows/auto_labeler.yml

-14
This file was deleted.

.github/workflows/auto_merge.yml

-38
This file was deleted.

.github/workflows/ci.yml

+60-79
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,47 @@
11
name: CI
22

3-
on:
3+
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- edited
12+
- synchronize
13+
- labeled
14+
- assigned
15+
- unlabeled
16+
- unlocked
17+
- review_requested
18+
- review_request_removed
19+
- unassigned
620

721
env:
822
COVERAGE: '1'
9-
php_extensions: 'apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip'
23+
php_extensions: 'apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip, xdebug'
1024
key: cache-v0.1
1125
DB_USER: 'postgres'
12-
DB_NAME: 'testing'
26+
DB_NAME: 'postgres'
1327
DB_PASSWORD: 'postgres'
28+
DB_HOST: '127.0.0.1'
1429

15-
jobs:
30+
jobs:
1631
lint:
1732
runs-on: '${{ matrix.operating_system }}'
18-
timeout-minutes: 20
19-
strategy:
33+
timeout-minutes: 20
34+
strategy:
2035
matrix:
2136
operating_system:
2237
- ubuntu-latest
2338
php_versions:
24-
- '7.4'
39+
- '8.3'
2540
fail-fast: false
26-
env:
41+
env:
2742
PHP_CS_FIXER_FUTURE_MODE: '0'
28-
name: 'Lint PHP'
29-
steps:
43+
name: 'Linter PHP'
44+
steps:
3045
- name: 'Checkout'
3146
uses: actions/checkout@v2
3247
- name: 'Setup cache environment'
@@ -43,77 +58,42 @@ jobs:
4358
key: '${{ steps.cache-env.outputs.key }}'
4459
restore-keys: '${{ steps.cache-env.outputs.key }}'
4560
- name: 'Setup PHP'
46-
uses: shivammathur/setup-php@v2
47-
with:
61+
uses: shivammathur/setup-php@v2
62+
with:
4863
php-version: ${{ matrix.php_versions }}
4964
extensions: '${{ env.php_extensions }}'
50-
ini-values: memory_limit=-1
65+
ini-values: memory_limit=-1
5166
tools: pecl, composer
5267
coverage: none
5368
- name: 'Setup problem matchers for PHP (aka PHP error logs)'
5469
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
5570
- name: 'Setup problem matchers for PHPUnit'
5671
run: 'echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"'
5772
- name: 'Install PHP dependencies with Composer'
58-
run: |
59-
rm composer.lock
60-
composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
73+
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
6174
working-directory: './'
6275
- name: 'Linting PHP source files'
63-
run: 'vendor/bin/ecs check --config=ecs.yml .'
76+
run: 'vendor/bin/ecs check --config=ecs.php .'
6477
test:
6578
strategy:
6679
fail-fast: false
6780
matrix:
68-
exclude_group:
69-
- WithoutSchema,forPHP8
70-
experimental:
71-
- false
72-
operating_system:
73-
- ubuntu-latest
74-
postgres:
75-
- '10'
76-
- '11'
77-
- '12'
78-
php_versions:
79-
- '7.3'
80-
- '7.4'
81+
coverage: [true]
82+
experimental: [false]
83+
operating_system: [ubuntu-latest]
84+
postgres: ['10', '11', '12', '13', '14']
85+
php_versions: ['8.3']
8186
include:
8287
- operating_system: 'ubuntu-latest'
83-
php_versions: '7.3'
84-
postgres: '9.6'
85-
experimental: false
86-
exclude_group: WithoutSchema,forPHP8
87-
- operating_system: 'ubuntu-latest'
88-
php_versions: '7.3'
89-
postgres: '13'
90-
experimental: false
91-
exclude_group: WithoutSchema,forPHP8
92-
- operating_system: 'ubuntu-latest'
93-
php_versions: '7.4'
94-
postgres: '13'
95-
experimental: false
96-
exclude_group: WithoutSchema,forPHP8
88+
php_versions: '8.3'
89+
postgres: '15'
90+
coverage: false
91+
experimental: true
9792
- operating_system: 'ubuntu-latest'
98-
php_versions: '8.0'
99-
postgres: '10'
100-
experimental: false
101-
exclude_group: WithoutSchema,forPHP7
102-
- operating_system: 'ubuntu-latest'
103-
php_versions: '8.0'
104-
postgres: '11'
105-
experimental: false
106-
exclude_group: WithoutSchema,forPHP7
107-
- operating_system: 'ubuntu-latest'
108-
php_versions: '8.0'
109-
postgres: '12'
110-
experimental: false
111-
exclude_group: WithoutSchema,forPHP7
112-
- operating_system: 'ubuntu-latest'
113-
php_versions: '8.0'
114-
postgres: '13'
115-
experimental: false
116-
exclude_group: WithoutSchema,forPHP7
93+
php_versions: '8.4'
94+
postgres: '16'
95+
coverage: false
96+
experimental: true
11797
runs-on: '${{ matrix.operating_system }}'
11898
services:
11999
postgres:
@@ -126,7 +106,7 @@ jobs:
126106
- 5432:5432
127107
# needed because the postgres container does not provide a healthcheck
128108
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
129-
name: 'Test / PHP ${{ matrix.php_versions }} / Postgres ${{ matrix.postgres }}'
109+
name: 'Testing / PHP ${{ matrix.php_versions }} / Postgres ${{ matrix.postgres }}'
130110
needs:
131111
- lint
132112
steps:
@@ -156,29 +136,30 @@ jobs:
156136
with:
157137
php-version: ${{ matrix.php_versions }}
158138
extensions: ${{ env.php_extensions }}
159-
ini-values: 'pcov.directory=src, date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off'
160-
coverage: pcov
139+
ini-values: 'date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off, xdebug.mode="develop,coverage"'
140+
coverage: xdebug
161141
tools: 'phpunit'
162142
- name: 'Install PHP dependencies with Composer'
163143
continue-on-error: ${{ matrix.experimental }}
164-
run: |
165-
rm composer.lock
166-
composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
144+
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
167145
working-directory: './'
168146
- name: 'Run Unit Tests with PHPUnit'
169147
continue-on-error: ${{ matrix.experimental }}
170-
env:
171-
# use localhost for the host here because we are running the job on the VM.
172-
# If we were running the job on in a container this would be postgres
173-
POSTGRES_USER: ${{ env.DB_USER }}
174-
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
175-
POSTGRES_DB: ${{ env.DB_NAME }}
176-
POSTGRES_HOST: 127.0.0.1
177-
POSTGRES_PORT: 5432
178-
run: './vendor/bin/phpunit --verbose --stderr --configuration phpunit.github.xml --exclude-group ${{ matrix.exclude_group }} --coverage-clover build/logs/clover.xml --coverage-text'
148+
run: |
149+
php -v
150+
sed -e "s/\${USERNAME}/${{ env.DB_USER }}/" \
151+
-e "s/\${PASSWORD}/${{ env.DB_PASSWORD }}/" \
152+
-e "s/\${DATABASE}/${{ env.DB_NAME }}/" \
153+
-e "s/\${HOST}/${{ env.DB_HOST }}/" \
154+
phpunit.xml.dist > phpunit.xml
155+
./vendor/bin/phpunit \
156+
--stderr \
157+
--coverage-clover build/logs/clover.xml \
158+
--coverage-text
159+
cat build/logs/clover.xml
179160
working-directory: './'
180161
- name: Upload coverage results to Coveralls
181-
if: ${{ !matrix.experimental }}
162+
if: ${{ !matrix.experimental && matrix.coverage }}
182163
env:
183164
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184165
COVERALLS_PARALLEL: true

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
.ecs_cache
44
phpunit.xml
55
.phpunit.result.cache
6+
.phpunit.cache
7+
composer.lock
68
/build

.run/Functional.run.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Functional" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
3+
<CommandLine parameters="-d memory_limit=-1">
4+
<PhpTestInterpreterSettings>
5+
<option name="interpreterName" value="PHP 8.3" />
6+
</PhpTestInterpreterSettings>
7+
<envs>
8+
<env name="XDEBUG.MODE" value="coverage" />
9+
</envs>
10+
</CommandLine>
11+
<TestRunner configuration_file="$PROJECT_DIR$/phpunit.xml" directory="$PROJECT_DIR$/tests/Functional" use_alternative_configuration_file="true" />
12+
<method v="2" />
13+
</configuration>
14+
</component>

0 commit comments

Comments
 (0)