1
0
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:
Bruce Weirdan 2021-07-19 01:04:59 +03:00 committed by GitHub
commit 99bafa68d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"