diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..518ecb6
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,46 @@
+name: CI
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php: [7.1, 7.2, 7.3]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ tools: pecl
+ extensions: xdebug
+ - name: Show php version
+ run: php -v && composer -V
+ - name: Debug if needed
+ run: if [[ "$DEBUG" == "true" ]]; then env; fi
+ env:
+ DEBUG: ${{secrets.DEBUG}}
+ - name: Get Composer Cache Directory
+ id: composer-cache
+ run: echo "::set-output name=dir::$(composer config cache-files-dir)"
+ - name: Cache dependencies
+ uses: actions/cache@v1
+ with:
+ path: ${{ steps.composer-cache.outputs.dir }}
+ key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
+ restore-keys: ${{ matrix.os }}-composer-
+ - name: Install dependencies
+ run: composer install --prefer-source
+ - name: Run unit tests
+ run: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
+ - name: Run Coverage
+ run: ./vendor/bin/php-coveralls -v
+ env:
+ COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
+ COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ continue-on-error: true
+ - name: show coverage json
+ run: cat build/logs/coveralls-upload.json
diff --git a/.gitignore b/.gitignore
index ee7d0e3..84bf2c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
.DS_Store
/vendor
+build/logs
phpunit.phar
composer.lock
.phpunit.result.cache
diff --git a/.travis.yml b/.travis.yml
index 13ec12c..85ef484 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,4 +20,4 @@ script:
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_success:
- - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
+ - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/php-coveralls -v; fi;'
diff --git a/README.md b/README.md
index ea1c729..48582c0 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Installation
Install using composer:
-```
+```bash
composer require jenssegers/model
```
diff --git a/phpunit.xml b/phpunit.xml
index 8583bcd..410cf16 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -14,4 +14,12 @@
tests
+
+
+ ./src
+
+
+
+
+