mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge pull request #6132 from orklah/CI
This commit is contained in:
commit
99bafa68d8
@ -8,17 +8,17 @@ executors:
|
||||
docker:
|
||||
- image: thecodingmachine/php:8.0-v4-cli
|
||||
jobs:
|
||||
install-and-self-analyse:
|
||||
"Code Style Analysis":
|
||||
executor: php-74
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- run: date "+%F" > /tmp/cachekey; cat composer.json >> /tmp/cachekey
|
||||
|
||||
- restore_cache:
|
||||
keys:
|
||||
- composer-v4
|
||||
- restore_cache:
|
||||
keys:
|
||||
- psalm-cache-{{ checksum "/tmp/cachekey" }} # speeds up diff run
|
||||
|
||||
- run: composer update
|
||||
|
||||
- save_cache:
|
||||
@ -27,27 +27,15 @@ jobs:
|
||||
- /home/docker/.composer/cache/files
|
||||
- /home/docker/.composer/cache/vcs
|
||||
|
||||
- run:
|
||||
name: Static analysis
|
||||
command: php -dextension=pcntl.so ./psalm --threads=10
|
||||
|
||||
- save_cache:
|
||||
key: psalm-cache-{{ checksum "/tmp/cachekey" }}
|
||||
paths:
|
||||
- /tmp/psalm
|
||||
|
||||
- persist_to_workspace:
|
||||
root: /home/docker/project/
|
||||
paths:
|
||||
- .
|
||||
"Code Style Analysis":
|
||||
executor: php-74
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: /home/docker/project/
|
||||
|
||||
- run:
|
||||
name: Code Style Analysis with PHPCS
|
||||
command: vendor/bin/phpcs
|
||||
|
||||
phar-build:
|
||||
executor: php-74
|
||||
steps:
|
||||
@ -91,10 +79,7 @@ jobs:
|
||||
workflows:
|
||||
Welcome:
|
||||
jobs:
|
||||
- install-and-self-analyse
|
||||
- "Code Style Analysis":
|
||||
requires:
|
||||
- install-and-self-analyse
|
||||
- "Code Style Analysis"
|
||||
- phar-build:
|
||||
requires:
|
||||
- "Code Style Analysis"
|
||||
|
Loading…
Reference in New Issue
Block a user