Skip to content

Commit 264e38a

Browse files
authored
Merge pull request #58 from ruudk/refactor
Bump minimum required PHP to 8.0
2 parents 4347804 + fc2086a commit 264e38a

File tree

4 files changed

+60
-81
lines changed

4 files changed

+60
-81
lines changed

.github/workflows/continuous-integration.yml renamed to .github/workflows/ci.yml

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,21 @@ on:
55
push:
66
branches:
77
- "master"
8-
schedule:
9-
- cron: "42 3 * * *"
108

119
jobs:
12-
phpunit:
13-
name: "PHPUnit"
10+
tests:
11+
name: "Tests"
1412
runs-on: "ubuntu-20.04"
1513

1614
strategy:
15+
fail-fast: false
1716
matrix:
1817
php-version:
19-
- "7.3"
20-
- "7.4"
2118
- "8.0"
19+
- "8.1"
2220
dependencies:
21+
- "lowest"
2322
- "highest"
24-
include:
25-
- dependencies: "lowest"
26-
php-version: "7.3"
2723

2824
steps:
2925
- name: "Checkout"
@@ -56,7 +52,7 @@ jobs:
5652
name: "Upload coverage to Codecov"
5753
runs-on: "ubuntu-20.04"
5854
needs:
59-
- "phpunit"
55+
- "tests"
6056

6157
steps:
6258
- name: "Checkout"
@@ -73,3 +69,32 @@ jobs:
7369
uses: "codecov/codecov-action@v1"
7470
with:
7571
directory: reports
72+
73+
coding-standards:
74+
name: "Coding Standards"
75+
runs-on: "ubuntu-20.04"
76+
77+
strategy:
78+
matrix:
79+
php-version:
80+
- "8.0"
81+
82+
steps:
83+
- name: "Checkout"
84+
uses: "actions/checkout@v2"
85+
86+
- name: "Install PHP"
87+
uses: "shivammathur/setup-php@v2"
88+
with:
89+
coverage: "none"
90+
php-version: "${{ matrix.php-version }}"
91+
tools: "cs2pr"
92+
93+
- name: "Install dependencies with Composer"
94+
uses: "ramsey/composer-install@v1"
95+
96+
- name: "Install php-cs-fixer"
97+
run: composer require "friendsofphp/php-cs-fixer:^2.16"
98+
99+
- name: "Run php-cs-fixer"
100+
run: "vendor/bin/php-cs-fixer fix --diff --dry-run -v"

.github/workflows/coding-standards.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"overblog/promise-adapter": "self.version"
2424
},
2525
"require": {
26-
"php": "^7.3|^8.0"
26+
"php": "^8.0"
2727
},
2828
"require-dev": {
29-
"guzzlehttp/promises": "^1.3.0",
30-
"phpunit/phpunit": "^7.5|^8.5",
31-
"react/promise": "^2.5.0",
29+
"guzzlehttp/promises": "^1.5.0",
30+
"phpunit/phpunit": "^9.5.10",
31+
"react/promise": "^2.8.0",
3232
"webonyx/graphql-php": "^14.0"
3333
},
3434
"suggest": {

phpunit.xml.dist

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
6-
backupGlobals="false"
7-
colors="true"
8-
bootstrap="./vendor/autoload.php"
9-
convertDeprecationsToExceptions="false"
10-
>
11-
<php>
12-
<ini name="error_reporting" value="-1" />
13-
</php>
14-
15-
<testsuites>
16-
<testsuite name="DataLoad Php Test Suite">
17-
<directory>./tests</directory>
18-
<directory>./lib/promise-adapter/tests</directory>
19-
</testsuite>
20-
</testsuites>
21-
22-
<filter>
23-
<whitelist>
24-
<directory>./src</directory>
25-
<directory>./lib/promise-adapter/src</directory>
26-
<exclude>
27-
<directory>./vendor</directory>
28-
<directory>./tests</directory>
29-
<directory>./lib/promise-adapter/tests</directory>
30-
</exclude>
31-
</whitelist>
32-
</filter>
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="./vendor/autoload.php" convertDeprecationsToExceptions="false">
4+
<coverage>
5+
<include>
6+
<directory>./src</directory>
7+
<directory>./lib/promise-adapter/src</directory>
8+
</include>
9+
<exclude>
10+
<directory>./vendor</directory>
11+
<directory>./tests</directory>
12+
<directory>./lib/promise-adapter/tests</directory>
13+
</exclude>
14+
</coverage>
15+
<php>
16+
<ini name="error_reporting" value="-1"/>
17+
</php>
18+
<testsuites>
19+
<testsuite name="DataLoad Php Test Suite">
20+
<directory>./tests</directory>
21+
<directory>./lib/promise-adapter/tests</directory>
22+
</testsuite>
23+
</testsuites>
3324
</phpunit>

0 commit comments

Comments
 (0)