Skip to content

Commit

Permalink
Merge pull request #9 from lucassouzavieira/develop
Browse files Browse the repository at this point in the history
Support for ArangoDB 3.11.x and 3.12.x versions
  • Loading branch information
lucassouzavieira authored May 15, 2024
2 parents a5d2a19 + 8da41b1 commit ad5a23d
Show file tree
Hide file tree
Showing 16 changed files with 1,065 additions and 1,256 deletions.
56 changes: 8 additions & 48 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ permissions:
contents: read

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

steps:
- name: Setup PHP
Expand All @@ -51,21 +51,21 @@ jobs:
- name: Run tests suites
run: vendor/bin/phpunit -c phpunit.xml

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

steps:
- name: Setup PHP
Expand All @@ -92,43 +92,3 @@ jobs:
- name: Run tests suites
run: vendor/bin/phpunit -c phpunit.xml

arango_3_9:
runs-on: ubuntu-latest
env:
ARANGO_SERVER: 3.9.2
services:
arangodb:
image: 'arangodb/arangodb:3.9.2'
ports:
- 8529:8529
env:
ARANGO_ROOT_PASSWORD: testing
strategy:
fail-fast: false
matrix:
php-versions: ['8.0', '8.1']

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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
sandbox.php
.env
.php_cs.cache
.php-cs-fixer.cache
build/
cache/
coverage.xml
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.2",
"ext-json": "*",
"guzzlehttp/psr7": "^2.3",
"guzzlehttp/guzzle": "^7.4",
Expand All @@ -32,7 +32,7 @@
"phpunit/phpunit": "^9.5",
"vlucas/phpdotenv": "^5.4",
"phpunit/php-code-coverage": "^9.0",
"friendsofphp/php-cs-fixer": "^2.16",
"friendsofphp/php-cs-fixer": "^3.0",
"squizlabs/php_codesniffer": "~3.7"
},
"autoload": {
Expand Down
Loading

0 comments on commit ad5a23d

Please sign in to comment.