-
Notifications
You must be signed in to change notification settings - Fork 25
136 lines (126 loc) · 3.69 KB
/
Copy pathci.yml
File metadata and controls
136 lines (126 loc) · 3.69 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: CI
on:
pull_request:
push:
permissions:
contents: read
jobs:
tests:
name: PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.2'
symfony: '^6.4'
- php: '8.2'
symfony: '^7.0'
- php: '8.3'
symfony: '^7.0'
- php: '8.4'
symfony: '^8.0'
- php: '8.5'
symfony: '^8.0'
services:
redis:
image: redis:7.2.15-bookworm
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 10
memcached:
image: memcached:1.6.5
ports:
- 11211:11211
mongodb:
image: mongo:8.0
ports:
- 27017:27017
options: >-
--health-cmd "mongosh --quiet --eval 'db.runCommand({ ping: 1 })'"
--health-interval 5s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: php-cache/cache
path: .ci/cache
- uses: shivammathur/setup-php@2.37.2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: apcu, memcache, memcached, mongodb, redis
ini-values: apc.enable_cli=1
tools: composer:v2
- run: composer config repositories.php-cache path .ci/cache
- run: composer require --no-update symfony/framework-bundle:${{ matrix.symfony }} symfony/options-resolver:${{ matrix.symfony }} symfony/yaml:${{ matrix.symfony }}
- run: composer update --no-interaction --prefer-dist --no-progress
- run: composer test
quality:
name: Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: php-cache/cache
path: .ci/cache
- uses: shivammathur/setup-php@2.37.2
with:
php-version: '8.2'
coverage: none
extensions: apcu, memcache, memcached, mongodb, redis
tools: composer:v2
- run: composer config repositories.php-cache path .ci/cache
- run: composer update --no-interaction --prefer-dist --no-progress
- run: composer validate --strict --no-check-lock
- run: composer phpstan
- run: composer cs:check
coverage:
name: Coverage
runs-on: ubuntu-latest
services:
redis:
image: redis:7.2.15-bookworm
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 10
memcached:
image: memcached:1.6.5
ports:
- 11211:11211
mongodb:
image: mongo:8.0
ports:
- 27017:27017
options: >-
--health-cmd "mongosh --quiet --eval 'db.runCommand({ ping: 1 })'"
--health-interval 5s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: php-cache/cache
path: .ci/cache
- uses: shivammathur/setup-php@2.37.2
with:
php-version: '8.2'
coverage: pcov
extensions: apcu, memcache, memcached, mongodb, redis
ini-values: apc.enable_cli=1
tools: composer:v2
- run: composer config repositories.php-cache path .ci/cache
- run: composer update --no-interaction --prefer-dist --no-progress
- run: composer coverage