Skip to content

Commit cba8251

Browse files
authored
Merge pull request #1547 from noone-silent/5.0.x
refactor: multiversion dockerfile
2 parents 345be5b + a0afad6 commit cba8251

File tree

11 files changed

+696
-723
lines changed

11 files changed

+696
-723
lines changed

Diff for: .github/workflows/release-phar.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
1515

16-
- name: Set PHP 7.2
16+
- name: Set PHP 7.4
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '7.2'
20-
extensions: phalcon-4.0.5
19+
php-version: '7.4'
20+
extensions: phalcon-5.1.2
2121

2222
- name: Compile phalcon.phar
2323
run: |

Diff for: .github/workflows/tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
key: ${{ env.key }}
4646

4747
- name: Cache extensions
48-
uses: actions/cache@v1
48+
uses: actions/cache@v4
4949
with:
5050
path: ${{ steps.cache-env.outputs.dir }}
5151
key: ${{ steps.cache-env.outputs.key }}
@@ -60,10 +60,10 @@ jobs:
6060

6161
- name: Get Composer Cache Directory
6262
id: composer-cache
63-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
63+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
6464

6565
- name: Cache composer dependencies
66-
uses: actions/cache@v1
66+
uses: actions/cache@v4
6767
with:
6868
path: ${{ steps.composer-cache.outputs.dir }}
6969
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -135,7 +135,7 @@ jobs:
135135
php content_config.php
136136
php tests/debug.php
137137
138-
- uses: actions/upload-artifact@v1
138+
- uses: actions/upload-artifact@v4
139139
if: failure()
140140
with:
141141
name: Codeception Logs

Diff for: .gitignore

+12-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,15 @@
55
#
66
# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
77

8-
/vendor
8+
# IDE
9+
.idea/
10+
*.iml
11+
12+
# local tests
13+
.local/
14+
.phalcon/
15+
dummy/
16+
default/
17+
18+
# composer
19+
vendor/

Diff for: composer.json

+17-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"name": "phalcon/devtools",
33
"type": "library",
44
"description": "This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.",
5-
"keywords": ["framework", "phalcon", "devtools", "webtools", "phar"],
5+
"keywords": [
6+
"framework",
7+
"phalcon",
8+
"devtools",
9+
"webtools",
10+
"phar"
11+
],
612
"homepage": "https://phalcon.io",
713
"license": "BSD-3-Clause",
814
"authors": [
@@ -21,8 +27,12 @@
2127
"source": "https://github.com/phalcon/phalcon-devtools",
2228
"forum": "https://forum.phalcon.io"
2329
},
30+
"config": {
31+
"optimize-autoloader": true,
32+
"sort-packages": true
33+
},
2434
"require": {
25-
"php": ">=7.4.1",
35+
"php": "^7.4||~8.0||~8.1||~8.2||~8.3",
2636
"ext-pdo": "*",
2737
"ext-phalcon": "^5.0.0",
2838
"psy/psysh": "~0.9",
@@ -38,16 +48,15 @@
3848
"codeception/specify": "^1.2",
3949
"codeception/verify": "^1.2",
4050
"squizlabs/php_codesniffer": "^3.7",
41-
"phalcon/ide-stubs": "^5.0.0",
4251
"vimeo/psalm": "^4.6",
4352
"codeception/module-phpbrowser": "^1.0",
4453
"codeception/module-filesystem": "^1.0",
4554
"codeception/module-asserts": "^1.3",
4655
"codeception/module-cli": "^1.0"
4756
},
4857
"autoload": {
49-
"psr-4" : {
50-
"Phalcon\\DevTools\\" : "src/"
58+
"psr-4": {
59+
"Phalcon\\DevTools\\": "src/"
5160
}
5261
},
5362
"autoload-dev": {
@@ -62,5 +71,7 @@
6271
"tests/_support/helpers.php"
6372
]
6473
},
65-
"bin": ["phalcon"]
74+
"bin": [
75+
"phalcon"
76+
]
6677
}

0 commit comments

Comments
 (0)