Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed May 2, 2023
1 parent 7a41eab commit 862511a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 51 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,11 @@ jobs:
dependency-versions: "highest"
composer-options: "--prefer-dist --no-cache"

- name: Installed dependencies
run: composer show -D

- name: Execute Code Style Analysis
run: vendor/bin/pint --test

- name: Execute Static Code Analysis
run: vendor/bin/phpstan analyse
9 changes: 6 additions & 3 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
os:
- "ubuntu-latest"
php:
- 8.1
- 8.2
experimental:
- false

name: PHP${{ matrix.php }} on ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -31,11 +31,14 @@ jobs:
coverage: xdebug

- name: Install dependencies
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--prefer-dist --no-cache"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

Expand Down
24 changes: 1 addition & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,14 @@ jobs:
- "ubuntu-latest"
- "windows-latest"
php:
<<<<<<< HEAD
- 7.2
- 7.3
- 7.4
- '8.0'
- 8.1
=======
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
>>>>>>> origin/master
- 8.2
dependencies:
- "highest"
- "lowest"
experimental:
- false
include:
- os: "ubuntu-latest"
php: 8.2
dependencies: "highest"
experimental: true
- os: "windows-latest"
php: 8.2
dependencies: "highest"
experimental: true

name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})

Expand All @@ -63,11 +44,8 @@ jobs:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"

<<<<<<< HEAD
- name: Installed dependencies
run: composer show -D

=======
>>>>>>> origin/master
- name: Execute tests
run: vendor/bin/phpunit
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"require-dev": {
"guzzlehttp/guzzle": "^7.0.1",
"laravel/pint": "^1.1",
"laravie/codex-filter": "^2.0",
"mockery/mockery": "^1.4.4",
"php-http/guzzle7-adapter": "^1.0",
Expand All @@ -33,9 +34,9 @@
"phpunit/phpunit": "^9.6"
},
"suggest": {
"laravie/codex-filter": "Content filtering for Laravie Codex (^1.2.2)",
"laravie/codex-filter": "Content filtering for Laravie Codex (^2.0)",
"php-http/multipart-stream-builder": "Allow to send multipart form request (^1.0)",
"phpunit/phpunit": "Allow to use Codex Faker request during testing (^8.5.21 || ^9.5.10)"
"phpunit/phpunit": "Allow to use Codex Faker request during testing (^9.6)"
},
"extra": {
"branch-alias": {
Expand Down
34 changes: 11 additions & 23 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>

<testsuites>
<testsuite name="Codex Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertDeprecationsToExceptions="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage includeUncoveredFiles="false">
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Codex Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 862511a

Please sign in to comment.