-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcircle.yml
44 lines (34 loc) · 1.12 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 2
jobs:
test:
working_directory: ~/wp-plugin
docker:
- image: circleci/php:8.0.12
steps:
- checkout
- restore_cache:
name: 'dependencies | restore cache'
keys:
- dependencies-{{ checksum "composer.lock" }}
- run:
name: 'dependencies | install composer'
command: 'composer install --prefer-source --no-interaction'
- save_cache:
name: 'dependencies | save cache'
key: dependencies-{{ checksum "composer.lock" }}
paths:
- app/vendor
- run:
name: 'tests | Varying Vagrants Vagrant: lint vvv-custom.yml'
command: 'composer yaml-lint'
- run:
name: 'tests | WP plugin: PHP Code Sniffer'
command: 'composer phpcs'
- run:
name: 'tests | WP plugin: PHPStan'
command: 'composer phpstan'
workflows:
version: 2
build_and_test:
jobs:
- test