Skip to content

Commit eb5ea59

Browse files
authored
Dropeed support for php7.0, 7.1 (#65)
* set php version to >=7.0 or 8 Signed-off-by: fenn-cs <[email protected]> * updated php_codesniffer Signed-off-by: fenn-cs <[email protected]> * updated to ubuntu 20.04 Signed-off-by: fenn-cs <[email protected]> * removed travis-ci and added github actions build status to readme Signed-off-by: fenn-cs <[email protected]> * updates to ci to include system tests Signed-off-by: fenn-cs <[email protected]> * ignored errors on php8 Signed-off-by: fenn-cs <[email protected]>
1 parent 7e26d98 commit eb5ea59

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: phpList Build
1+
name: phpList Web Frontend Build
22
on: [push, pull_request]
33
jobs:
44
main:
@@ -22,8 +22,8 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
26-
dependencies: ['latest', 'oldest']
25+
php-versions: ['7.2', '7.3', '7.4', '8.0']
26+
# dependencies: ['latest', 'oldest']
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v2
@@ -49,24 +49,31 @@ jobs:
4949
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
5050
restore-keys: ${{ runner.os }}-composer-
5151
- name: Install the latest dependencies
52-
run: composer update --with-dependencies --prefer-stable --prefer-dist
53-
if: ${{ matrix.dependencies }} == "latest"
54-
- name: Install lowest dependencies from
55-
run: composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
56-
if: ${{ matrix.dependencies }} == "oldest"
52+
run: composer install
53+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
54+
# - name: Install lowest dependencies from
55+
# run: composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
56+
# if: ${{ matrix.dependencies }} == "oldest"
5757
- name: Set up database schema
5858
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -u${{ env.DB_USERNAME }} -p${{ env.DB_PASSWORD }} ${{ env.DB_DATABASE }} < vendor/phplist/core/resources/Database/Schema.sql
59+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
5960
- name: Validating composer.json
6061
run: composer validate --no-check-all --no-check-lock --strict;
62+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
6163
- name: Linting all php files
6264
run: find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l;
63-
- name: Run integration tests with phpunit
64-
run: vendor/bin/phpunit tests/Integration/
65-
- name: Running the system tests
65+
- name: Running integration tests with phpunit
6666
run: vendor/bin/phpunit tests/Integration/;
67+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
68+
- name: Running the system tests
69+
run: vendor/bin/phpunit tests/System/;
70+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
6771
- name: Running static analysis
6872
run: vendor/bin/phpstan analyse -l 5 src/ tests/;
73+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
6974
- name: Running PHPMD
7075
run: vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml;
76+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
7177
- name: Running PHP_CodeSniffer
72-
run: vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/;
78+
run: vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/;
79+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# phpList 4 web frontend
22

3-
[![Build Status](https://github.com/phpList/web-frontend/workflows/phpList%20Build/badge.svg)](https://github.com/phpList/web-frontend/actions)
3+
[![Build Status](https://github.com/phpList/web-frontend/workflows/phpList%20Web%20Frontend%20Build/badge.svg)](https://github.com/phpList/web-frontend/actions)
44
[![Latest Stable Version](https://poser.pugx.org/phplist/web-frontend/v/stable.svg)](https://packagist.org/packages/phpList/web-frontend)
55
[![Total Downloads](https://poser.pugx.org/phplist/web-frontend/downloads.svg)](https://packagist.org/packages/phpList/web-frontend)
66
[![Latest Unstable Version](https://poser.pugx.org/phplist/web-frontend/v/unstable.svg)](https://packagist.org/packages/phpList/web-frontend)

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
"source": "https://github.com/phpList/web-frontend"
3030
},
3131
"require": {
32-
"php": "^7.0|^8.0",
33-
"phplist/core": "4.0.x-dev"
32+
"php": "^7.2|^8.0",
33+
"phplist/core": "^v4.0.0-alpha5"
3434
},
3535
"require-dev": {
36-
"phpunit/phpunit": "^6.5.6",
37-
"phpunit/phpunit-mock-objects": "^5.0.6",
38-
"guzzlehttp/guzzle": "^6.3.0",
36+
"phpunit/phpunit": "^6.5.6 | ^9.5.2",
37+
"phpunit/phpunit-mock-objects": "^5.0.6 | ^6.1.2",
38+
"guzzlehttp/guzzle": "^7.2.0",
3939
"squizlabs/php_codesniffer": "^3.5.8",
40-
"phpstan/phpstan": "^0.7.0",
41-
"nette/caching": "^2.5.0 || ^3.0.0",
42-
"nikic/php-parser": "^3.1.0",
43-
"phpmd/phpmd": "^2.6.0"
40+
"phpstan/phpstan": "^0.7.0 | ^0.12.57",
41+
"nette/caching": "^3.1.0",
42+
"nikic/php-parser": "^v4.10.4",
43+
"phpmd/phpmd": "^2.9.1"
4444
},
4545
"autoload": {
4646
"psr-4": {

0 commit comments

Comments
 (0)