Merge pull request #14859 from nupplaphil/feat/woodpecker

[CI] Woodpecker improvements
pull/14860/head
Michael Vogel 2025-03-15 06:54:05 +01:00 zatwierdzone przez GitHub
commit 0aa350f1c8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
6 zmienionych plików z 28 dodań i 9 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ steps:
volumes:
- /tmp/drone-cache:/tmp/cache
composer_install:
image: friendicaci/php8.2:php8.2.16
image: friendicaci/php8.2:php8.2.28
commands:
- mkdir addon # create empty addon folder to appease composer
- export COMPOSER_HOME=.composer

Wyświetl plik

@ -5,7 +5,7 @@
matrix:
include:
- PHP_MAJOR_VERSION: 8.2
PHP_VERSION: 8.2.16
PHP_VERSION: 8.2.28
when:
branch:

Wyświetl plik

@ -8,6 +8,10 @@ when:
exclude: [ stable ]
event: [ pull_request, push ]
# This forces PHP Unit executions at the "opensocial" labeled location (because of access issues with git.friendi.ca)
labels:
location: opensocial
steps:
restore_cache:
image: meltwater/drone-cache:dev
@ -22,7 +26,7 @@ steps:
- /tmp/drone-cache:/tmp/cache
composer_install:
image: friendicaci/php8.3:php8.3.3
image: friendicaci/php8.3:php8.3.17
commands:
- mkdir addon # create empty addon folder to appease composer
- export COMPOSER_HOME=.composer
@ -41,6 +45,6 @@ steps:
- /tmp/drone-cache:/tmp/cache
phpmd:
image: friendicaci/php8.3:php8.3.3
image: friendicaci/php8.3:php8.3.17
commands:
- ./bin/composer.phar run phpmd

Wyświetl plik

@ -9,11 +9,13 @@ matrix:
- PHP_MAJOR_VERSION: 8.0
PHP_VERSION: 8.0.30
- PHP_MAJOR_VERSION: 8.1
PHP_VERSION: 8.1.27
PHP_VERSION: 8.1.31
- PHP_MAJOR_VERSION: 8.2
PHP_VERSION: 8.2.16
PHP_VERSION: 8.2.28
- PHP_MAJOR_VERSION: 8.3
PHP_VERSION: 8.3.3
PHP_VERSION: 8.3.17
- PHP_MAJOR_VERSION: 8.4
PHP_VERSION: 8.4.5
# This forces PHP Unit executions at the "opensocial" labeled location (because of much more power...)
labels:
@ -24,7 +26,19 @@ when:
exclude: [ stable ]
event: [ pull_request, push ]
skip_clone: true
steps:
clone:
image: alpine/git
commands:
- git config --global user.email "no-reply@friendi.ca"
- git config --global user.name "Friendica"
- git config --global --add safe.directory $CI_WORKSPACE
- git clone $CI_REPO_CLONE_URL .
- git checkout $CI_COMMIT_BRANCH
- git fetch origin $CI_COMMIT_REF
- git merge $CI_COMMIT_SHA
php-lint:
image: php:${PHP_MAJOR_VERSION}
commands:
@ -94,7 +108,7 @@ steps:
when:
matrix:
PHP_MAJOR_VERSION: 8.2
PHP_VERSION: 8.2.16
PHP_VERSION: 8.2.28
repo:
- friendica/friendica
commands:

Wyświetl plik

@ -35,7 +35,7 @@ steps:
volumes:
- /tmp/drone-cache:/tmp/cache
composer_install:
image: friendicaci/php8.2:php8.2.16
image: friendicaci/php8.2:php8.2.28
commands:
- mkdir addon # create empty addon folder to appease composer
- export COMPOSER_HOME=.composer

Wyświetl plik

@ -11,6 +11,7 @@ if (!file_exists(__DIR__ . '/../vendor/autoload.php')) {
die('Vendor path not found. Please execute "bin/composer.phar install" on the command line in the web root.');
}
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
require __DIR__ . '/../vendor/autoload.php';
// Backward compatibility