Skip to content

Commit d79e6c8

Browse files
authored
Merge branch 'main' into patch-1
2 parents 1369d16 + c0ae71a commit d79e6c8

File tree

3 files changed

+46
-11
lines changed

3 files changed

+46
-11
lines changed

.github/workflows/ci.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
name: Run Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
run:
713
name: PHP ${{ matrix.php }}
814
runs-on: ubuntu-latest
915
strategy:
1016
matrix:
11-
php: ['7.3', '7.4']
17+
php: ['8.1', '8.2', '8.3', '8.4']
1218
steps:
1319
- name: Checkout
1420
uses: actions/checkout@v2
@@ -35,9 +41,9 @@ jobs:
3541
run: composer update --prefer-dist
3642

3743
- name: Run tests
38-
run: vendor/bin/phpunit
39-
40-
- name: Upload coverage results to Coveralls
41-
env:
42-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
44+
run: |
45+
if [ ${{ matrix.php }} == '8.1' ]; then
46+
vendor/bin/phpunit --configuration phpunit-8.1.xml
47+
else
48+
vendor/bin/phpunit
49+
fi

composer.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"guzzlehttp/oauth-subscriber": "0.6.*"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": ">9.0",
25-
"php-coveralls/php-coveralls": "^2.7",
26-
"friendsofphp/php-cs-fixer": "^3.65"
24+
"phpunit/phpunit": ">9.0"
2725
},
2826
"autoload": {
2927
"psr-4": { "phpSmug\\": "lib/phpSmug/" }

phpunit-8.1.xml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
cacheDirectory=".phpunit.cache"
6+
executionOrder="depends,defects"
7+
requireCoverageMetadata="false"
8+
beStrictAboutCoverageMetadata="false"
9+
beStrictAboutOutputDuringTests="true"
10+
displayDetailsOnPhpunitDeprecations="true"
11+
failOnPhpunitDeprecation="true"
12+
failOnRisky="true"
13+
failOnWarning="true">
14+
<testsuites>
15+
<testsuite name="phpSmug Test Suite">
16+
<directory>test/phpSmug/</directory>
17+
</testsuite>
18+
</testsuites>
19+
20+
<groups>
21+
<exclude>
22+
<group>functional</group>
23+
</exclude>
24+
</groups>
25+
26+
<source restrictNotices="true" restrictWarnings="true">
27+
<include>
28+
<directory>src</directory>
29+
</include>
30+
</source>
31+
</phpunit>

0 commit comments

Comments
 (0)