Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
52 changes: 5 additions & 47 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,29 @@ name: PHP

on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]

permissions:
contents: read

jobs:
arango_3_11:
runs-on: ubuntu-latest
env:
ARANGO_SERVER: 3.11.8
services:
arangodb:
image: 'arangodb/arangodb:3.11.8'
ports:
- 8529:8529
env:
ARANGO_ROOT_PASSWORD: testing
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3']

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

- name: Check out repository code
uses: actions/checkout@v3

- name: Add testing configuration
run: cp .env.testing .env

- name: Add ArangoDB version to .env
run: echo -e "\nARANGODB_VERSION=$ARANGO_SERVER" >> .env

- name: Install dependencies
run: composer install --no-interaction

- name: Wait ArangoDB to init
run: sleep 30

- name: Run tests suites
run: vendor/bin/phpunit -c phpunit.xml

arango_3_12:
runs-on: ubuntu-latest
env:
ARANGO_SERVER: 3.12.0
ARANGO_SERVER: 3.12.4
services:
arangodb:
image: 'arangodb/arangodb:3.12.0'
image: "arangodb/arangodb:3.12.4"
ports:
- 8529:8529
env:
ARANGO_ROOT_PASSWORD: testing
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3']
php-versions: ["8.2", "8.3", "8.4"]

steps:
- name: Setup PHP
Expand All @@ -91,4 +50,3 @@ jobs:

- name: Run tests suites
run: vendor/bin/phpunit -c phpunit.xml

21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@
"require": {
"php": ">=8.2",
"ext-json": "*",
"guzzlehttp/psr7": "^2.3",
"guzzlehttp/guzzle": "^7.4",
"symfony/service-contracts": "3.0.2",
"symfony/event-dispatcher-contracts": "3.0.2",
"symfony/deprecation-contracts": "3.0.2",
"symfony/string": "6.0.10"
"guzzlehttp/guzzle": "^7.10",
"symfony/service-contracts": "^3.6",
"symfony/event-dispatcher-contracts": "^3.6",
"symfony/deprecation-contracts": "^3.6",
"symfony/string": "^7.3.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"vlucas/phpdotenv": "^5.4",
"phpunit/php-code-coverage": "^9.0",
"friendsofphp/php-cs-fixer": "^3.0",
"squizlabs/php_codesniffer": "~3.7"
"phpunit/phpunit": "^9.6.29",
"vlucas/phpdotenv": "^5.6.2",
"phpunit/php-code-coverage": "^9.2.32",
"friendsofphp/php-cs-fixer": "^3.88.2",
"squizlabs/php_codesniffer": "^3.13.4"
},
"autoload": {
"psr-4": {
Expand Down
Loading