Skip to content

Commit 53b2823

Browse files
authored
Run tests in more php versions (#50)
* Run tests in more php versions * Update continuous-integration.yml * Update continuous-integration.yml * Declare php 8 support
1 parent 380cc8e commit 53b2823

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/continuous-integration.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: "actions/checkout@v2"
2020

2121
- name: "Install PHP with extensions"
22-
uses: "shivammathur/setup-php@v1"
22+
uses: "shivammathur/setup-php@v2"
2323
with:
2424
coverage: "none"
2525
extensions: "simplexml"
@@ -35,16 +35,26 @@ jobs:
3535
name: "Tests"
3636

3737
runs-on: "ubuntu-latest"
38+
39+
strategy:
40+
matrix:
41+
php-version:
42+
- "7.0"
43+
- "7.1"
44+
- "7.2"
45+
- "7.3"
46+
- "7.4"
47+
- "8.0"
3848

3949
steps:
4050
- name: "Checkout"
4151
uses: "actions/checkout@v2"
4252

4353
- name: "Install PHP with extensions"
44-
uses: "shivammathur/setup-php@v1"
54+
uses: "shivammathur/setup-php@v2"
4555
with:
4656
coverage: "none"
4757
extensions: "simplexml"
48-
php-version: "7.0"
58+
php-version: "${{ matrix.php-version }}"
4959

5060
- run: php tests/tests.php

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "staabm/annotate-pull-request-from-checkstyle",
33
"license" : "MIT",
44
"require" : {
5-
"php" : "^7.0",
5+
"php" : "^7.0 || ^8.0",
66
"ext-simplexml" : "*"
77
},
88
"require-dev" : {

0 commit comments

Comments
 (0)