Skip to content

fix: use 'sprintf' instead of string interpolation #45

fix: use 'sprintf' instead of string interpolation

fix: use 'sprintf' instead of string interpolation #45

Workflow file for this run

name: PHP
on:
push:
branches: [ main, develop ]
pull_request:
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
services:
arangodb:
image: 'arangodb/arangodb:3.12.0'
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