added memgraph test and workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests with Memgraph on PHP 8.5 | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| memgraph-tests: | |
| runs-on: ubuntu-22.04 | |
| name: "Running Integration tests for PHP on Memgraph" | |
| services: | |
| memgraph: | |
| image: memgraph/memgraph | |
| ports: | |
| - 7687:7687 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.5' | |
| extensions: mbstring, sockets | |
| coverage: xdebug | |
| ini-values: max_execution_time=0 | |
| - name: Install dependencies | |
| run: composer install --no-progress | |
| - name: Test with phpunit | |
| run: vendor/bin/phpunit --configuration phpunit.xml --testsuite "Memgraph" |