Skip to content

Commit dcfa11a

Browse files
authored
Merge pull request #2 from niden/master
2 parents 0308a5e + 89be7fa commit dcfa11a

17 files changed

+574
-543
lines changed

Diff for: .github/workflows/main.yml

+15-33
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,16 @@ on:
1919

2020
env:
2121
# All versions should be declared here
22-
PHALCON_VERSION: 5.0.0
22+
PHALCON_VERSION: 5.0.2
2323

2424
# For tests
2525
LANG: en_US.UTF-8
2626
LANGUAGE: en_US.UTF-8
2727
LC_ALL: en_US.UTF-8
2828

29-
# Windows specific
30-
TOOLS_DIR: 'C:\tools'
31-
3229
# PHP extensions required by Composer
33-
EXTENSIONS: apcu, gettext, gd, igbinary, imagick, intl, json, mbstring, msgpack, memcached, sqlite3, yaml, redis, :memcache
30+
# (adding phalcon version here until I figure out how to use the variable above)
31+
EXTENSIONS: apcu, gettext, gd, igbinary, imagick, intl, json, mbstring, msgpack, memcached, phalcon-5.0.2, sqlite3, yaml, redis, :memcache
3432

3533
jobs:
3634
phpcs:
@@ -45,32 +43,13 @@ jobs:
4543
run: docker run --rm -v $(pwd):/data cytopia/phpcs --standard=./phpcs.xml
4644

4745
build-and-test:
48-
name: tests / PHP-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.arch }}
46+
name: tests / PHP-${{ matrix.php }}
4947

50-
runs-on: ${{ matrix.os }}
48+
runs-on: ubuntu-latest
5149
strategy:
5250
fail-fast: false
5351
matrix:
5452
php: [ '7.4', '8.0', '8.1' ]
55-
ts: [ 'nts', 'ts' ]
56-
arch: [ 'x64' ]
57-
58-
name:
59-
- ubuntu-gcc
60-
- macos-clang
61-
62-
# matrix names should be in next format:
63-
# {php}-{ts}-{os.name}-{compiler}-{arch}
64-
include:
65-
# Linux
66-
- { name: ubuntu-gcc, os: ubuntu-18.04, compiler: gcc }
67-
# macOS
68-
- { name: macos-clang, os: macos-10.15, compiler: clang }
69-
# Windows
70-
- { php: '7.4', ts: 'ts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
71-
- { php: '7.4', ts: 'nts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
72-
- { php: '8.0', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
73-
- { php: '8.0', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
7453

7554
steps:
7655
- uses: actions/checkout@v2
@@ -79,7 +58,7 @@ jobs:
7958
shell: pwsh
8059
run: |
8160
git config --global core.autocrlf false
82-
$SessionSavePath = if ("${{ runner.os }}" -eq "Windows") { 'C:\temp' } else { '/tmp' }
61+
$SessionSavePath = '/tmp'
8362
Write-Output "SESSION_SAVE_PATH=$SessionSavePath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8463
8564
- name: Setup PHP
@@ -91,7 +70,6 @@ jobs:
9170
tools: pecl, phpize, php-config, composer:v2
9271
coverage: xdebug
9372
env:
94-
PHPTS: ${{ matrix.ts }}
9573
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9674

9775
- name: Validate composer
@@ -114,14 +92,18 @@ jobs:
11492
- name: Setup Tests
11593
shell: bash
11694
run: |
117-
if [ "${{ runner.os }}" = "Linux" ]; then
118-
./config/ci/linux-setup-locales.sh
119-
fi
120-
121-
cp tests/_config/.env.default .env
95+
cp config/.env.default .env
12296
vendor/bin/codecept build
12397
# php tests/_config/generate-db-schemas.php
12498

12599
- name: Run Unit Tests
126100
if: always()
127101
run: vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php }}.xml --ext DotReporter unit
102+
103+
- name: Upload coverage to Codecov
104+
if: success()
105+
uses: codecov/codecov-action@v3
106+
with:
107+
token: ${{secrets.CODECOV_TOKEN}}
108+
directory: ./tests/_output/
109+
files: coverage-7.4.xml,coverage-8.0.xml,coverage-8.1.xml

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor
2-
.env
2+
/tests/_output/
3+
.env

Diff for: CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ disagree.
2020

2121
If ever conflict arises, please bring it to the attention of the maintainers
2222
privately. You can always find us on our [Discord](https://phalcon.io/discord)
23-
server or you can send us an email at [[email protected]](mailto:[email protected])
23+
server, or you can email us at [[email protected]](mailto:[email protected])
2424

2525
The core team maintains the final decision on any conflict that may arise.

Diff for: README.md

+44-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,44 @@
1-
# proxy-psr16
2-
Package to offer PSR-16 (Cache) compatibility with Phalcon classes from the PHP userland
1+
# Phalcon Framework - Proxy PSR-16
2+
3+
[![PDS Skeleton][pds_skeleton]](https://github.com/php-pds/skeleton)
4+
[![Phalcon CI][actions_badge]](https://github.com/phalcon/proxy-psr16/actions/workflows/main.yml)
5+
[![codecov][codecov_badge]](https://codecov.io/gh/phalcon/proxy-psr16)
6+
7+
Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.
8+
9+
Proxy PSR-16 is a package that offers PSR-16 compatibility with `Phalcon\Cache\Cache`. Developers that wish to use PSR-16 alongside Phalcon, can use this package which is a wrapper to `Phalcon\Cache\Cache`.
10+
11+
## Installation
12+
13+
You can install the package using composer
14+
15+
```sh
16+
composer require phalcon/proxy-psr16
17+
```
18+
19+
## Links
20+
21+
### General
22+
* [Official Documentation](https://docs.phalcon.io/)
23+
24+
### Support
25+
* [Forum](https://phalcon.io/forum)
26+
* [Discord](https://phalcon.io/discord)
27+
* [Stack Overflow](https://phalcon.io/so)
28+
29+
### Social Media
30+
* [Telegram](https://phalcon.io/telegram)
31+
* [Gab](https://phalcon.io/gab)
32+
* [LinkedIn](https://phalcon.io/linkedin)
33+
* [MeWe](https://phalcon.io/mewe)
34+
* [Facebook](https://phalcon.io/fb)
35+
* [Twitter](https://phalcon.io/t)
36+
37+
38+
<!-- External links should be here -->
39+
[actions_badge]: https://github.com/phalcon/proxy-psr16/actions/workflows/main.yml/badge.svg
40+
[codecov_badge]: https://codecov.io/gh/phalcon/proxy-psr16/branch/master/graph/badge.svg?token=426jh06aRu
41+
42+
[pds_skeleton]: https://img.shields.io/badge/pds-skeleton-blue.svg?style=flat-square
43+
44+
[discord-badge]: https://img.shields.io/discord/310910488152375297?label=Discord&logo=discord&style=flat-square

Diff for: composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"codeception/module-redis": "^1.4",
3333
"friendsofphp/php-cs-fixer": "^3.7",
3434
"pds/skeleton": "^1.0",
35+
"phalcon/ide-stubs": "^5.0",
3536
"phpstan/phpstan": "^1.4",
3637
"squizlabs/php_codesniffer": "^3.6",
3738
"vimeo/psalm": "^4.22",

0 commit comments

Comments
 (0)