File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 21
21
22
22
- name : Validate
23
23
run : composer validate --strict
24
+
25
+ stable-tests :
26
+ name : Stable Tests
27
+ runs-on : ubuntu-latest
28
+
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ php-versions : [ '7.4', '8.0' ]
33
+
34
+ steps :
35
+ - name : Set PHP Version
36
+ run : sudo update-alternatives --set php /usr/bin/php${{ matrix.php-versions }}
37
+
38
+ - name : Get PHP Version
39
+ run : |
40
+ ver=$(php -v | grep -oP '(?<=PHP )\d.\d')
41
+ echo "::set-output name=version::$ver"
42
+ id : php-ver
43
+
44
+ - name : Using PHP Version from matrix
45
+ run : |
46
+ echo "Runner is not using PHP Version defined in the php-versions matrix."
47
+ php -v
48
+ exit 1
49
+ if : steps.php-ver.outputs.version != matrix.php-versions
50
+
51
+ - name : Checkout
52
+ uses : actions/checkout@v2
53
+
54
+ - name : Install Composer Dependencies
55
+ run : composer install --no-progress
56
+
57
+ - name : PHPUnit
58
+ run : vendor/bin/simple-phpunit
You can’t perform that action at this time.
0 commit comments