Skip to content

Commit 7a55eed

Browse files
committed
Merge branch 'v8'
# Conflicts: # .travis.yml # lib/Phpfastcache/Helper/ActOnAll.php
2 parents ec2787b + 9ddb884 commit 7a55eed

File tree

159 files changed

+6346
-5134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+6346
-5134
lines changed

.github/workflows/greetings.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
issue-message: |
13+
Hello curious contributor !
14+
Since it seems to be your first contribution, make sure that you've been:
15+
- Reading and searching out our [WIKI](https://github.com/PHPSocialNetwork/phpfastcache/wiki)
16+
- Reading and agreed with our [Code Of Conduct](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODE_OF_CONDUCT.md)
17+
- Reading and understood our [Coding Guideline](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODING_GUIDELINE.md)
18+
- Reading our [README](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/README.md)
19+
If everything looks unclear to you, tell us what 😄
20+
The Phpfastcache Team
21+
pr-message: |
22+
Hello curious contributor !
23+
Since it seems to be your first contribution, make sure that you've been:
24+
- Reading and searching out our [WIKI](https://github.com/PHPSocialNetwork/phpfastcache/wiki)
25+
- Reading and agreed with our [Code Of Conduct](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODE_OF_CONDUCT.md)
26+
- Reading and understood our [Coding Guideline](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CODING_GUIDELINE.md)
27+
- Reading our [README](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/README.md)
28+
If everything looks unclear to you, tell us what 😄
29+
The Phpfastcache Team

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Unit tests
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Setup PHP 7.3
8+
uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: '7.3'
11+
coverage: none
12+
extensions: mbstring, intl, pdo_sqlite
13+
ini-values: apc.enabled=1, apc.shm_size=32M, apc.ttl=7200, apc.enable_cli=1, apc.serializer=php
14+
- name: Setup Memcached server
15+
uses: niden/actions-memcached@v7
16+
- name: Setup Redis server
17+
uses: zhulik/redis-action@v1.0.0
18+
with:
19+
redis version: '5'
20+
- uses: actions/checkout@v1
21+
22+
- name: Validate composer.json and composer.lock
23+
run: composer validate
24+
25+
- name: Install dependencies
26+
run: composer install --prefer-dist --no-progress --no-suggest
27+
28+
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
29+
# Docs: https://getcomposer.org/doc/articles/scripts.md
30+
- name: Run tests on PHP 7.3
31+
run: php -f ./bin/ci/run_tests.php
32+
- name: Setup PHP 7.4
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: '7.4'
36+
coverage: none
37+
extensions: mbstring, intl, pdo_sqlite, json
38+
ini-values: apc.enabled=1, apc.shm_size=32M, apc.ttl=7200, apc.enable_cli=1, apc.serializer=php
39+
- name: Run tests on PHP 7.4
40+
run: php -f ./bin/ci/run_tests.php

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ before_script:
2626
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
2727
cat bin/ci/hhvm_phpfastcache.ini >> /etc/hhvm/php.ini
2828
else
29-
phpenv config-add bin/ci/php_phpfastcache.ini
30-
pecl channel-update pecl.php.net
31-
pecl install -f mongodb-stable
29+
pecl channel-update pecl.php.net;
30+
yes | pecl install -f mongodb-stable;
31+
yes | pecl install -f apcu-stable || true;
32+
phpenv config-add bin/ci/php_phpfastcache.ini;
3233
fi
3334
- sleep 15
3435
- mongo pfc_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
@@ -38,9 +39,9 @@ php:
3839
# - 5.4
3940
# - 5.5
4041
# - 5.6
41-
- 7.0
42-
- 7.1
43-
- 7.2
42+
#- 7.0
43+
# - 7.1
44+
# - 7.2
4445
- 7.3
4546
- 7.4
4647
- nightly

0 commit comments

Comments
 (0)