Skip to content

Commit

Permalink
Merge branch 'v8'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.travis.yml
#	lib/Phpfastcache/Helper/ActOnAll.php
  • Loading branch information
Geolim4 committed Mar 22, 2020
2 parents ec2787b + 9ddb884 commit 7a55eed
Show file tree
Hide file tree
Showing 159 changed files with 6,346 additions and 5,134 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Greetings

on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello curious contributor !
Since it seems to be your first contribution, make sure that you've been:
- Reading and searching out our [WIKI](https://github.com/PHPSocialNetwork/phpfastcache/wiki)
- Reading and agreed with our [Code Of Conduct](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODE_OF_CONDUCT.md)
- Reading and understood our [Coding Guideline](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODING_GUIDELINE.md)
- Reading our [README](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/README.md)
If everything looks unclear to you, tell us what 😄
The Phpfastcache Team
pr-message: |
Hello curious contributor !
Since it seems to be your first contribution, make sure that you've been:
- Reading and searching out our [WIKI](https://github.com/PHPSocialNetwork/phpfastcache/wiki)
- Reading and agreed with our [Code Of Conduct](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODE_OF_CONDUCT.md)
- Reading and understood our [Coding Guideline](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODING_GUIDELINE.md)
- Reading our [README](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/README.md)
If everything looks unclear to you, tell us what 😄
The Phpfastcache Team
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Unit tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup PHP 7.3
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
coverage: none
extensions: mbstring, intl, pdo_sqlite
ini-values: apc.enabled=1, apc.shm_size=32M, apc.ttl=7200, apc.enable_cli=1, apc.serializer=php
- name: Setup Memcached server
uses: niden/actions-memcached@v7
- name: Setup Redis server
uses: zhulik/[email protected]
with:
redis version: '5'
- uses: actions/checkout@v1

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Run tests on PHP 7.3
run: php -f ./bin/ci/run_tests.php
- name: Setup PHP 7.4
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
extensions: mbstring, intl, pdo_sqlite, json
ini-values: apc.enabled=1, apc.shm_size=32M, apc.ttl=7200, apc.enable_cli=1, apc.serializer=php
- name: Run tests on PHP 7.4
run: php -f ./bin/ci/run_tests.php
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ before_script:
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
cat bin/ci/hhvm_phpfastcache.ini >> /etc/hhvm/php.ini
else
phpenv config-add bin/ci/php_phpfastcache.ini
pecl channel-update pecl.php.net
pecl install -f mongodb-stable
pecl channel-update pecl.php.net;
yes | pecl install -f mongodb-stable;
yes | pecl install -f apcu-stable || true;
phpenv config-add bin/ci/php_phpfastcache.ini;
fi
- sleep 15
- mongo pfc_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
Expand All @@ -38,9 +39,9 @@ php:
# - 5.4
# - 5.5
# - 5.6
- 7.0
- 7.1
- 7.2
#- 7.0
# - 7.1
# - 7.2
- 7.3
- 7.4
- nightly
Expand Down
Loading

0 comments on commit 7a55eed

Please sign in to comment.