Skip to content

Commit 9c9163b

Browse files
authored
Added PHP8.0 to build pipeline (#320)
* removed travis-ci and added github actions build status to readme Signed-off-by: fenn-cs <[email protected]> * added php 8 to ci, updated build name Signed-off-by: fenn-cs <[email protected]> * allow safe fail for php8 Signed-off-by: fenn-cs <[email protected]>
1 parent f6596fe commit 9c9163b

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/ci.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: phpList Build
1+
name: phpList Core Build
22
on: [push, pull_request]
33
jobs:
44
main:
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
25+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v2
@@ -51,12 +51,16 @@ jobs:
5151
restore-keys: ${{ runner.os }}-composer-
5252
- name: Install Composer dependencies
5353
run: composer install --no-progress --prefer-dist --optimize-autoloader
54+
continue-on-error: ${{matrix.php-versions == '8.0' }} # Temporal until full support for php8 === [temp-php8]
5455
- name: Validating composer.json
5556
run: composer validate --no-check-all --no-check-lock --strict;
57+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
5658
- name: Linting all php files
5759
run: find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*;
60+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
5861
- name: Run units tests with phpunit
5962
run: vendor/bin/phpunit tests/Unit/
63+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
6064
- name: Run integration tests with phpunit
6165
run: |
6266
export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }}
@@ -65,11 +69,16 @@ jobs:
6569
export PHPLIST_DATABASE_PORT=${{ job.services.mysql.ports['3306'] }}
6670
export PHPLIST_DATABASE_HOST=127.0.0.1
6771
vendor/bin/phpunit tests/Integration/
72+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
6873
- name: Running the system tests
6974
run: vendor/bin/phpunit tests/System/;
75+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
7076
- name: Running static analysis
7177
run: vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/;
78+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
7279
- name: Running PHPMD
7380
run: vendor/bin/phpmd src/ text config/PHPMD/rules.xml;
81+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
7482
- name: Running PHP_CodeSniffer
75-
run: vendor/bin/phpcs --standard=config/PhpCodeSniffer/ bin/ src/ tests/ public/;
83+
run: vendor/bin/phpcs --standard=config/PhpCodeSniffer/ bin/ src/ tests/ public/;
84+
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# phpList core module
22

33

4+
<<<<<<< HEAD
5+
[![Build Status](https://github.com/phpList/core/workflows/phpList%20Core%20Build/badge.svg)](https://github.com/phpList/core/actions)
6+
=======
47
[![Build Status](https://github.com/phpList/core/workflows/phpList%20Build/badge.svg)](https://github.com/phpList/web-frontend/actions)
8+
>>>>>>> f6596fe9bfb52b9b788084880b7b88dd7758c4ed
59
[![Latest Stable Version](https://poser.pugx.org/phplist/core/v/stable.svg)](https://packagist.org/packages/phpList/core)
610
[![Total Downloads](https://poser.pugx.org/phplist/core/downloads.svg)](https://packagist.org/packages/phpList/core)
711
[![Latest Unstable Version](https://poser.pugx.org/phplist/core/v/unstable.svg)](https://packagist.org/packages/phpList/core)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"source": "https://github.com/phpList/core"
3535
},
3636
"require": {
37-
"php": ">=7.0",
37+
"php": "^7.0|^8.0",
3838
"doctrine/orm": "^2.5.0",
3939
"doctrine/common": "^2.6.0",
4040
"doctrine/doctrine-bundle": "^1.8.0",

0 commit comments

Comments
 (0)