Skip to content

Commit 85da150

Browse files
authored
Merge pull request #9 from niden/main
v2.0.1 Prep
2 parents 2814b48 + 70d035b commit 85da150

File tree

15 files changed

+148
-15
lines changed

15 files changed

+148
-15
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
--health-retries 5
2222
strategy:
2323
matrix:
24-
php: [8.0, 8.1]
24+
php: [8.0, 8.1, 8.2]
2525

2626
steps:
2727
- name: Checkout code
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2929

3030
- name: Setup PHP
3131
uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: ${{ matrix.php }}
34-
extensions: phalcon-5.0.0RC1, pdo, mysql
34+
extensions: phalcon-5.0.0, pdo, mysql
3535
coverage: none
3636

3737
- name: Validate composer.json and composer.lock

.github/workflows/static-code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
phpcs:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2-beta
9+
- uses: actions/checkout@v3
1010
with:
1111
fetch-depth: 1
1212
- name: Run PHP_CodeSniffer

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## [2.0.0](https://github.com/Codeception/module-phalcon5/releases/tag/1.0.0) (12-16-2021)
2+
3+
- Fixed `getRawBody()` return type [#8](https://github.com/Codeception/module-phalcon5/issues/8)
4+
5+
## [2.0.0](https://github.com/Codeception/module-phalcon5/releases/tag/1.0.0) (12-16-2021)
6+
7+
- Use of Codeception v5+
8+
- Use of Phalcon 5.0.0RC1+
9+
- Corrected namespaces
10+
- Cosmetic changes
11+
12+
## [1.0.1](https://github.com/Codeception/module-phalcon5/releases/tag/1.0.0) (12-16-2021)
13+
14+
- Corrections for Packagist descriptions and PHP minimum version
15+
116
## [1.0.0](https://github.com/Codeception/module-phalcon5/releases/tag/1.0.0) (12-11-2021)
217

3-
- Support Phalcon 5.0.0beta1
18+
- Support Phalcon 5.0.0beta1

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"require": {
2121
"php": ">=8.0",
2222
"ext-json": "*",
23-
"codeception/codeception": "^5.0.0-RC1",
23+
"codeception/codeception": "^5.0.0",
2424
"codeception/module-asserts": "^3.0",
2525
"codeception/module-phpbrowser": "^3.0",
2626
"codeception/module-db": "^3.0"
2727
},
2828
"require-dev": {
2929
"codeception/util-robohelpers": "dev-master",
30-
"phalcon/ide-stubs": "^5.0.0RC1",
30+
"phalcon/ide-stubs": "^5.0.0",
3131
"squizlabs/php_codesniffer": "^3.6",
3232
"vimeo/psalm": "^4.23",
3333
"vlucas/phpdotenv": "^5.4"

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ services:
1818
volumes:
1919
- .:/srv
2020

21+
module-phalcon5-8.2:
22+
container_name: module-phalcon5-8.2
23+
hostname: module-phalcon5-82
24+
build: docker/8.2
25+
working_dir: /srv
26+
volumes:
27+
- .:/srv
28+
2129
mysql:
2230
container_name: module-phalcon5-mysql
2331
image: mysql:5.7

docker/8.0/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV PHP_VERSION="8.0" \
8-
PHALCON_VERSION="5.0.0RC1"
8+
PHALCON_VERSION="5.2.3"
99

1010
# Update
1111
RUN apt update -y && \

docker/8.1/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM composer:latest as composer
2-
FROM php:8.1-fpm
2+
FROM php:8.2-fpm
33

44
ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV PHP_VERSION="8.1" \
8-
PHALCON_VERSION="5.0.0RC1"
8+
PHALCON_VERSION="5.2.3"
99

1010
# Update
1111
RUN apt update -y && \

docker/8.2/.bashrc

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#!/bin/bash
2+
3+
# Easier navigation: .., ..., ...., ....., ~ and -
4+
alias ..="cd .."
5+
alias ...="cd ../.."
6+
alias ....="cd ../../.."
7+
alias .....="cd ../../../.."
8+
alias ~="cd ~" # `cd` is probably faster to type though
9+
alias -- -="cd -"
10+
11+
# Shortcuts
12+
alias g="git"
13+
alias h="history"
14+
15+
# Detect which `ls` flavor is in use
16+
if ls --color > /dev/null 2>&1; then # GNU `ls`
17+
colorflag="--color"
18+
else # OS X `ls`
19+
colorflag="-G"
20+
fi
21+
22+
# List all files colorized in long format
23+
# shellcheck disable=SC2139
24+
alias l="ls -lF ${colorflag}"
25+
26+
# List all files colorized in long format, including dot files
27+
# shellcheck disable=SC2139
28+
alias la="ls -laF ${colorflag}"
29+
30+
# List only directories
31+
# shellcheck disable=SC2139
32+
alias lsd="ls -lF ${colorflag} | grep --color=never '^d'"
33+
34+
# See: https://superuser.com/a/656746/280737
35+
alias ll='LC_ALL="C.UTF-8" ls -alF'
36+
37+
# Always use color output for `ls`
38+
# shellcheck disable=SC2139
39+
alias ls="command ls ${colorflag}"
40+
export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'
41+
42+
# Always enable colored `grep` output
43+
alias grep='grep --color=auto '
44+
45+
# Enable aliases to be sudo’ed
46+
alias sudo='sudo '
47+
48+
# Get week number
49+
alias week='date +%V'
50+
51+
# Stopwatch
52+
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
53+
54+
# Canonical hex dump; some systems have this symlinked
55+
command -v hd > /dev/null || alias hd="hexdump -C"
56+
57+
# vhosts
58+
alias hosts='sudo nano /etc/hosts'
59+
60+
# copy working directory
61+
alias cwd='pwd | tr -d "\r\n" | xclip -selection clipboard'
62+
63+
# copy file interactive
64+
alias cp='cp -i'
65+
66+
# move file interactive
67+
alias mv='mv -i'
68+
69+
# untar
70+
alias untar='tar xvf'
71+
72+
# Zephir related
73+
alias untar='tar xvf'
74+
75+
PATH=$PATH:./vendor/bin

docker/8.2/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM composer:latest as composer
2+
FROM php:8.1-fpm
3+
4+
ADD ./extra.ini /usr/local/etc/php/conf.d/
5+
6+
# User/Group globals
7+
ENV PHP_VERSION="8.1" \
8+
PHALCON_VERSION="5.2.3"
9+
10+
# Update
11+
RUN apt update -y && \
12+
apt install -y \
13+
apt-utils \
14+
git \
15+
nano \
16+
sudo \
17+
wget \
18+
zip
19+
20+
# PECL Packages
21+
RUN pecl install phalcon-${PHALCON_VERSION}
22+
23+
RUN docker-php-ext-install \
24+
pdo_mysql
25+
26+
# Install PHP extensions
27+
RUN docker-php-ext-enable \
28+
phalcon
29+
30+
# Composer
31+
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
32+
# Bash script with helper aliases
33+
COPY ./.bashrc /root/.bashrc
34+
35+
CMD ["php-fpm"]

docker/8.2/extra.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
memory_limit=512M
2+
apc.enable_cli="On"
3+
session.save_path="/tmp"

0 commit comments

Comments
 (0)