Skip to content

Commit

Permalink
Merge pull request #14 from Smolevich/13-update-ci-and-dependencies
Browse files Browse the repository at this point in the history
Rename ci, update ci, update dependencies
  • Loading branch information
Smolevich authored Aug 11, 2020
2 parents 318a10d + 7dfa27d commit 26aa00e
Show file tree
Hide file tree
Showing 9 changed files with 3,735 additions and 49 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/blank.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,33 @@ on:
tags:
pull_request:



jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3]
php: [7.2, 7.3, 7.4]
services:
reindexer:
image: reindexer/reindexer
ports:
- 9088:9088
steps:
- uses: actions/checkout@v1
- name: Show php version
run: php${{ matrix.php }} -v && composer -V
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- name: Show php and composer version
run: php -v && composer -V
- name: Install dependencies
run: composer install
- name: Run unit and integration tests
run: |
mkdir -p build/logs
export REINDEXER_HOST=http://0.0.0.0:9088
php${{ matrix.php }} vendor/bin/phpunit --coverage-clover build/logs/clover.xml
env:
REINDEXER_HOST: "http://0.0.0.0:9088"
- name: Run style-fixer
run: php${{ matrix.php }} vendor/bin/php-cs-fixer fix --dry-run
- name: Code coverage
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
.idea
/.php_cs.cache
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "smolevich/reindexer-client",
"description": "PHP client for using database reindexer",
"type": "library",
"minimum-stability": "dev",
"minimum-stability": "stable",
"license": "MIT",
"require": {
"php": ">=7.1",
"guzzlehttp/guzzle": "^6.3"
"guzzlehttp/guzzle": "^6.5"
},
"require-dev": {
"phpunit/phpunit": "^7.1",
Expand All @@ -27,6 +27,7 @@
],
"scripts": {
"run-test": "phpunit",
"style-fix": "php-cs-fixer fix"
"style-fix": "php-cs-fixer fix",
"check-fix": "php-cs-fixer fix --dry-run"
}
}
Loading

0 comments on commit 26aa00e

Please sign in to comment.