Skip to content

Commit

Permalink
Replace client
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Oct 23, 2022
1 parent dd5682b commit 2a3dad2
Show file tree
Hide file tree
Showing 82 changed files with 1,061 additions and 1,631 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Main

on: [push, pull_request]

jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.0, 8.1]
name: PHP ${{ matrix.php }}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: php-cs-fixer:3

- name: Checkout
uses: actions/checkout@v3

- name: Run PHP CS Fixer
run: php-cs-fixer fix --diff --dry-run

- name: Install
uses: "ramsey/composer-install@v2"

- name: Run tests
run: ./vendor/bin/phpunit
services:
neo4j:
image: neo4j
ports:
- 7687:7687
- 7474:7474
env:
NEO4J_AUTH: none
options: >-
--health-cmd "wget http://localhost:7474 || exit 1"
--health-interval 1s
--health-timeout 10s
--health-retries 20
--health-start-period 3s
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
composer.lock
.DS_Store
.DS_Store
.phpunit.result.cache
18 changes: 18 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('.github')
->exclude('vendor')
;

$config = new PhpCsFixer\Config();

return $config
->setRules([
'@PSR12' => true,
'@Symfony' => true,
])
->setUsingCache(false)
->setFinder($finder)
;
9 changes: 0 additions & 9 deletions .styleci.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 2a3dad2

Please sign in to comment.