diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7970d91..5ca67f3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,8 +8,9 @@ jobs: matrix: operating-system: [ubuntu-latest] php-versions: ['8.1', '8.2', '8.3'] + dependency-preference: ['current', 'lowest', 'stable'] fail-fast: false - name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} + name: PHP ${{ matrix.php-versions }} ${{ matrix.dependency-preference }} deps @ ${{ matrix.operating-system }} steps: - name: Checkout uses: actions/checkout@master @@ -20,6 +21,6 @@ jobs: tools: 'composer:v2' extensions: pcov, mbstring, posix, dom, soap - name: Install dependencies - run: composer update --prefer-dist --no-progress --no-suggest + run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.dependency-preference == 'lowest' && '--prefer-lowest' || '' }} ${{ matrix.dependency-preference == 'stable' && '--prefer-stable' || '' }} - name: Run the tests run: ./vendor/bin/phpunit diff --git a/composer.json b/composer.json index 7774f2a..089f3db 100644 --- a/composer.json +++ b/composer.json @@ -19,16 +19,18 @@ "php-soap/engine": "^2.8", "php-soap/wsdl": "^1.4", "php-soap/xml": "^1.6.0", - "veewee/xml": "^2.6 || ^3.0", + "veewee/xml": "^3.0", "azjezz/psl": "^2.4", - "symfony/console": "^5.4 || ^6.0 || ^7.0" + "symfony/console": "^5.4 || ^6.0 || ^7.0", + "webmozart/assert": "^1.11" }, "require-dev": { "symfony/var-dumper": "^6.1", "php-soap/engine-integration-tests": "^1.5.0", "psalm/plugin-symfony": "^5.0", "php-standard-library/psalm-plugin": "^2.2", - "vimeo/psalm": "^5.6" + "vimeo/psalm": "^5.6", + "phpunit/phpunit": "^10.0" }, "license": "MIT", "authors": [