mirror of
https://github.com/friendica/friendica
synced 2025-02-22 04:06:47 +00:00
Add cache in phpmd workflow
This commit is contained in:
parent
9b9627e4b6
commit
a6ea520224
1 changed files with 31 additions and 2 deletions
|
@ -9,9 +9,38 @@ when:
|
||||||
event: [ pull_request, push ]
|
event: [ pull_request, push ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
restore_cache:
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
restore: true
|
||||||
|
cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- '.composer'
|
||||||
|
volumes:
|
||||||
|
- /tmp/drone-cache:/tmp/cache
|
||||||
|
|
||||||
|
composer_install:
|
||||||
|
image: friendicaci/php8.3:php8.3.3
|
||||||
|
commands:
|
||||||
|
- mkdir addon # create empty addon folder to appease composer
|
||||||
|
- export COMPOSER_HOME=.composer
|
||||||
|
- ./bin/composer.phar install --prefer-dist
|
||||||
|
|
||||||
|
rebuild_cache:
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
rebuild: true
|
||||||
|
cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- '.composer'
|
||||||
|
volumes:
|
||||||
|
- /tmp/drone-cache:/tmp/cache
|
||||||
|
|
||||||
phpmd:
|
phpmd:
|
||||||
image: friendicaci/php8.3:php8.3.3
|
image: friendicaci/php8.3:php8.3.3
|
||||||
commands:
|
commands:
|
||||||
- mkdir addon
|
|
||||||
- ./bin/composer.phar install
|
|
||||||
- ./bin/composer.phar run phpmd
|
- ./bin/composer.phar run phpmd
|
||||||
|
|
Loading…
Add table
Reference in a new issue