Skip to content

Commit 8836087

Browse files
authored
Merge pull request #53 from jrushlow/ci/run-tests
run tests against 7.4 and 8.0
2 parents 5427626 + eb78b34 commit 8836087

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,38 @@ jobs:
2121

2222
- name: Validate
2323
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

0 commit comments

Comments
 (0)