Skip to content

Commit

Permalink
update tests workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassouzavieira committed May 15, 2024
1 parent e34c5ae commit 15c5ae2
Showing 1 changed file with 8 additions and 48 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
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

0 comments on commit 15c5ae2

Please sign in to comment.