File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP Composer
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : ' 8.1'
23
+ extensions : mbstring, intl, pdo_mysql
24
+ coverage : none
25
+
26
+ - name : Validate composer.json and composer.lock
27
+ run : composer validate --strict
28
+
29
+ - name : Cache Composer packages
30
+ uses : actions/cache@v3
31
+ with :
32
+ path : vendor
33
+ key : ${{ runner.os }}-php-${{ hashFiles('composer.lock') }}
34
+ restore-keys : |
35
+ ${{ runner.os }}-php-
36
+
37
+ - name : Install dependencies
38
+ run : composer install --prefer-dist --no-progress
39
+
40
+ - name : Run Pest tests
41
+ run : vendor/bin/pest
42
+
43
+ - name : Run benchmarks
44
+ run : vendor/bin/phpbench run benchmarks/ --bootstrap=vendor/autoload.php
You can’t perform that action at this time.
0 commit comments