mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-06 15:24:27 +02:00
Add CI step for PHPStan in addons folder
This commit is contained in:
parent
fead446624
commit
8e7676bfd8
2 changed files with 40 additions and 1 deletions
32
.github/workflows/code-quality.yml
vendored
32
.github/workflows/code-quality.yml
vendored
|
@ -76,6 +76,38 @@ jobs:
|
||||||
- name: Run PHPStan
|
- name: Run PHPStan
|
||||||
run: composer run phpstan
|
run: composer run phpstan
|
||||||
|
|
||||||
|
phpstan-addons:
|
||||||
|
name: PHPStan in addons (PHP ${{ matrix.php }})
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
operating-system: ['ubuntu-latest']
|
||||||
|
php: ['8.4']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
|
||||||
|
- name: Setup PHP with composer and extensions
|
||||||
|
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php }}
|
||||||
|
coverage: xdebug
|
||||||
|
tools: none
|
||||||
|
|
||||||
|
- name: Clone addon repository
|
||||||
|
run: git clone -b develop --single-branch https://git.friendi.ca/friendica/friendica-addons.git addon
|
||||||
|
|
||||||
|
- name: Install Composer dependencies
|
||||||
|
uses: "ramsey/composer-install@v2"
|
||||||
|
|
||||||
|
- name: Run PHPStan in addons
|
||||||
|
run: composer run phpstan-addons
|
||||||
|
|
||||||
phpmd:
|
phpmd:
|
||||||
name: PHPMD (PHP ${{ matrix.php }})
|
name: PHPMD (PHP ${{ matrix.php }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -64,9 +64,16 @@ steps:
|
||||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
PHP_MAJOR_VERSION: 8.2
|
PHP_MAJOR_VERSION: 8.3
|
||||||
commands:
|
commands:
|
||||||
- bin/composer.phar run phpstan;
|
- bin/composer.phar run phpstan;
|
||||||
|
phpstan-addons:
|
||||||
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
PHP_MAJOR_VERSION: 8.3
|
||||||
|
commands:
|
||||||
|
- bin/composer.phar run phpstan-addons;
|
||||||
test:
|
test:
|
||||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue