File tree 2 files changed +56
-14
lines changed
2 files changed +56
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ php-versions :
20
+ - ' 5.6'
21
+ - ' 7.0'
22
+ - ' 7.1'
23
+ # - '7.2'
24
+ # - '8.0'
25
+ # - '8.1'
26
+ # - '8.2'
27
+ # - '8.3'
28
+
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+
32
+ - name : Setup PHP
33
+ uses : shivammathur/setup-php@v2
34
+ with :
35
+ php-version : ${{ matrix.php-versions }}
36
+ ini-values : zend.assertions=1, assert.exception=1
37
+
38
+ - name : Validate composer.json
39
+ run : composer validate --strict
40
+
41
+ - name : Cache Composer packages
42
+ id : composer-cache
43
+ uses : actions/cache@v4
44
+ with :
45
+ path : vendor
46
+ key : ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('composer.json') }}
47
+ restore-keys : |
48
+ ${{ runner.os }}-php-${{ matrix.php-versions }}
49
+
50
+ - name : Install dependencies
51
+ run : composer install --prefer-dist --no-progress
52
+
53
+ - name : Run the unit tests
54
+ run : |
55
+ vendor/bin/phpspec --version
56
+ vendor/bin/phpspec run -f pretty
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments