mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
actions: test on 8.0
This commit is contained in:
21
.github/workflows/main.yml
vendored
21
.github/workflows/main.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
image: [ubuntu-20.04]
|
||||
php: [7.4.20]
|
||||
php: [7.4.20, 8.0.7]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2 #needed for build.sh
|
||||
@ -36,8 +36,13 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image: [ubuntu-20.04]
|
||||
php: [7.4.20]
|
||||
include:
|
||||
- php: 8.0.7
|
||||
config: phpstan.php8.neon
|
||||
image: ubuntu-20.04
|
||||
- php: 7.4.20
|
||||
config: phpstan.neon.dist
|
||||
image: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -77,7 +82,7 @@ jobs:
|
||||
run: php composer.phar install --prefer-dist --no-interaction
|
||||
|
||||
- name: Run PHPStan
|
||||
run: ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G
|
||||
run: ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G -c ${{ matrix.config }}
|
||||
|
||||
phpunit:
|
||||
name: PHPUnit tests
|
||||
@ -87,7 +92,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image: [ubuntu-20.04]
|
||||
php: [7.4.20]
|
||||
php: [7.4.20, 8.0.7]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -137,7 +142,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image: [ubuntu-20.04]
|
||||
php: [7.4.20]
|
||||
php: [7.4.20, 8.0.7]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -189,7 +194,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image: [ubuntu-20.04]
|
||||
php: [7.4.20]
|
||||
php: [7.4.20, 8.0.7]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -274,7 +279,7 @@ jobs:
|
||||
- name: Setup PHP and tools
|
||||
uses: shivammathur/setup-php@2.9.0
|
||||
with:
|
||||
php-version: 7.4
|
||||
php-version: 8.0
|
||||
tools: php-cs-fixer
|
||||
|
||||
- name: Run PHP-CS-Fixer
|
||||
|
Reference in New Issue
Block a user