Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-redfern committed Mar 2, 2024
1 parent beeea71 commit 104d007
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 48 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
name: tests

on:
push:

create:
tags:
- '*'

push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
create:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
testsuite:
name: Unittests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: json, pdo
tools: pecl

- name: Validate composer.json and composer.lock
run: composer validate
- name: Validate composer.json
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Composer install
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: vendor/bin/phpunit
- name: Run PHPUnit
run: vendor/bin/phpunit --exclude-group=amqp
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ Icon
Network Trash Folder
Temporary Items
.apdisk
/.idea/phpunit.xml
8 changes: 3 additions & 5 deletions .idea/attribute-model.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log
==========

2024-03-02
----------

* require PHP 8.1+
* update to use `somnambulist/domain` 5.0

2023-01-16
----------

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"pragmarx/ia-str": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "~9.5",
"phpunit/phpunit": "^10.5",
"somnambulist/collection": "^5.0",
"somnambulist/domain": "^5.0",
"symfony/var-dumper": "^6.0"
"somnambulist/domain": "^6.0",
"symfony/var-dumper": "^6.4"
},
"autoload": {
"psr-4": {
Expand Down
41 changes: 21 additions & 20 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" bootstrap="vendor/autoload.php">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>tests</directory>
</exclude>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="256M"/>
<server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1"/>
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
colors="true" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache">
<php>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="256M"/>
<server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1"/>
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>tests</directory>
</exclude>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/AttributeCasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Somnambulist\Components\AttributeModel\Tests;

use Eloquent\Enumeration\Exception\UndefinedMemberException;
use PHPUnit\Framework\TestCase;
use Somnambulist\Components\AttributeModel\AttributeCaster;
use Somnambulist\Components\AttributeModel\Contracts\AttributeCasterInterface;
Expand All @@ -12,6 +11,7 @@
use Somnambulist\Components\AttributeModel\TypeCasters;
use Somnambulist\Components\Collection\Contracts\Collection;
use Somnambulist\Components\Collection\MutableCollection;
use Somnambulist\Components\Enumeration\Exception\UndefinedMemberException;
use Somnambulist\Components\Models\Types\DateTime\DateTime;
use Somnambulist\Components\Models\Types\Geography\Country;
use Somnambulist\Components\Models\Types\Geography\Srid;
Expand Down

0 comments on commit 104d007

Please sign in to comment.