Skip to content

Commit fb970df

Browse files
authored
Merge branch '2.3' of ezsystems/ezplatform-query-fieldtype into main (#10)
Merge up of ezsystems/ezplatform-query-fieldtype#62
2 parents 91ce509 + 8833273 commit fb970df

File tree

8 files changed

+113
-98
lines changed

8 files changed

+113
-98
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Browser tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
query-fieldtype:
12+
name: "Page Builder browser tests"
13+
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
14+
with:
15+
project-edition: 'oss'
16+
project-version: '^4.0.x-dev'
17+
test-suite: '--profile=browser --suite=admin-ui --tags=@contentQuery'
18+
secrets:
19+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/ci.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
cs-fix:
12+
name: Run code style check
13+
runs-on: "ubuntu-20.04"
14+
strategy:
15+
matrix:
16+
php:
17+
- '8.0'
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Setup PHP Action
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
coverage: none
26+
extensions: 'pdo_sqlite, gd'
27+
tools: cs2pr
28+
29+
- uses: "ramsey/composer-install@v1"
30+
with:
31+
dependency-versions: "highest"
32+
33+
- name: Run code style check
34+
run: composer run-script check-cs -- --format=checkstyle | cs2pr
35+
36+
tests:
37+
name: Unit tests
38+
runs-on: "ubuntu-20.04"
39+
timeout-minutes: 15
40+
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
php:
45+
- '7.4'
46+
- '8.0'
47+
composer-options: [ "" ]
48+
include:
49+
- php: '8.1'
50+
composer-options: "--ignore-platform-req php"
51+
52+
steps:
53+
- uses: actions/checkout@v2
54+
55+
- name: Setup PHP Action
56+
uses: shivammathur/setup-php@v2
57+
with:
58+
php-version: ${{ matrix.php }}
59+
coverage: none
60+
extensions: pdo_sqlite, gd
61+
tools: cs2pr
62+
63+
- uses: "ramsey/composer-install@v1"
64+
with:
65+
dependency-versions: "highest"
66+
composer-options: "${{ matrix.composer-options }}"
67+
68+
- name: Setup problem matchers for PHPUnit
69+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
70+
71+
- name: Run unit test suite
72+
run: composer test

.github/workflows/cross-merge.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Ibexa Reusable / Cross Org PR
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "temp_*"
7+
8+
jobs:
9+
call:
10+
uses: ibexa/gh-workflows/.github/workflows/cross-merge.yml@main
11+
secrets:
12+
robot-token: ${{ secrets.EZROBOT_PAT }}

.php-cs-fixer-spec.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
array_filter([
2222
__DIR__ . '/src',
2323
__DIR__ . '/tests',
24+
__DIR__ . '/spec',
2425
], 'is_dir')
2526
)
2627
->files()->name('*.php')

.travis.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.travis/prepare_ezplatform.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

composer.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,23 @@
5454
"ibexa/search": "^4.0@dev",
5555
"ibexa/user": "^4.0@dev",
5656
"ibexa/http-cache": "^4.0@dev",
57-
"phpspec/phpspec": "^6.0",
57+
"phpspec/phpspec": "^7.1",
5858
"ibexa/code-style": "^1.0",
5959
"friendsofphp/php-cs-fixer": "^3.0"
6060
},
6161
"scripts": {
62-
"fix-cs": [
63-
"php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
64-
"php-cs-fixer --ansi fix --config=.php-cs-fixer-spec.php -v --show-progress=dots"
65-
]
62+
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
63+
"check-cs": "@fix-cs --dry-run",
64+
"test": "phpspec run --format=pretty"
6665
},
6766
"extra": {
6867
"branch-alias": {
6968
"dev-main": "4.0.x-dev"
7069
}
70+
},
71+
"config": {
72+
"allow-plugins": {
73+
"composer/package-versions-deprecated": true
74+
}
7175
}
7276
}

0 commit comments

Comments
 (0)