File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ phpstan :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+
12
+ - name : Cache Composer dependencies
13
+ uses : actions/cache@v3
14
+ with :
15
+ path : /tmp/composer-cache
16
+ key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
17
+
18
+ - uses : php-actions/composer@v6
19
+ with :
20
+ php_version : 8.2
21
+
22
+ - uses : php-actions/phpstan@v3
23
+ with :
24
+ php_version : 8.2
25
+ php_extensions : redis
26
+ path : src/
27
+ version : composer
28
+ configuration : phpstan.neon
29
+ command : analyse
30
+
31
+ phpunit :
32
+ runs-on : ubuntu-latest
33
+
34
+ services :
35
+ redis :
36
+ image : redis
37
+ options : >-
38
+ --health-cmd "redis-cli ping"
39
+ --health-interval 10s
40
+ --health-timeout 5s
41
+ --health-retries 5
42
+ ports :
43
+ - 6379:6379
44
+
45
+ steps :
46
+ - uses : actions/checkout@v3
47
+
48
+ - name : Cache Composer dependencies
49
+ uses : actions/cache@v3
50
+ with :
51
+ path : /tmp/composer-cache
52
+ key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
53
+
54
+ - uses : php-actions/composer@v6
55
+ with :
56
+ php_version : 8.2
57
+
58
+ - uses : php-actions/phpunit@v4
59
+ with :
60
+ php_version : 8.2
61
+ php_extensions : redis
62
+ version : composer
63
+ configuration : phpunit.xml
64
+ args : ' --testdox'
65
+
You can’t perform that action at this time.
0 commit comments