Skip to content

Commit

Permalink
chore: remove @dev constraint (#6513)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Aug 19, 2024
1 parent 93911b1 commit b8430ab
Show file tree
Hide file tree
Showing 21 changed files with 191 additions and 171 deletions.
105 changes: 82 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- run: composer check-dependencies

php-cs-fixer:
Expand Down Expand Up @@ -119,7 +122,9 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: |
composer update --no-interaction --no-progress --ansi
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Run container lint
run: tests/Fixtures/app/console lint:container

Expand Down Expand Up @@ -156,7 +161,9 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: |
composer update --no-interaction --no-progress --ansi
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Cache PHPStan results
uses: actions/cache@v4
with:
Expand All @@ -175,9 +182,10 @@ jobs:
./vendor/bin/phpstan --version
./vendor/bin/phpstan analyse --no-interaction --no-progress --ansi
- name: Install Laravel
working-directory: 'src/Laravel'
run: |
composer api-platform/laravel update
composer api-platform/laravel run-script build
composer global link ../../ --working-directory=$(pwd)
composer run-script build
- name: Run PHPStan analysis (laravel)
working-directory: 'src/Laravel'
run: |
Expand Down Expand Up @@ -219,7 +227,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -294,7 +305,9 @@ jobs:
ini-values: memory_limit=-1
- name: Run ${{ matrix.component }} install
run: |
composer update
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link . --permanent
composer ${{matrix.component}} update
- name: Run ${{ matrix.component }} tests
run: |
Expand Down Expand Up @@ -364,7 +377,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests (PHP ${{ matrix.php }})
Expand Down Expand Up @@ -465,7 +481,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests
Expand Down Expand Up @@ -513,7 +532,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests
Expand Down Expand Up @@ -563,8 +585,10 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: |
composer update --no-interaction --no-progress --ansi
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer require --dev doctrine/mongodb-odm-bundle
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -654,7 +678,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -737,7 +764,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests
Expand Down Expand Up @@ -773,7 +803,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -813,7 +846,10 @@ jobs:
- name: Remove cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -855,7 +891,10 @@ jobs:
- name: Remove cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests
Expand Down Expand Up @@ -901,8 +940,12 @@ jobs:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
# TODO: fix pmu windows path directory
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link . --working-directory=${{ github.workspace }}
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests
Expand Down Expand Up @@ -940,7 +983,11 @@ jobs:
- name: Remove cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Update project dependencies
run: composer update --prefer-lowest --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link . --permanent
composer update --prefer-lowest
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -982,7 +1029,11 @@ jobs:
- name: Remove cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Update project dependencies
run: composer update --prefer-lowest --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link . --permanent
composer update --prefer-lowest
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests
Expand Down Expand Up @@ -1026,7 +1077,10 @@ jobs:
if: matrix.coverage
run: echo "COVERAGE=1" >> $GITHUB_ENV
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run PHPUnit tests
Expand Down Expand Up @@ -1095,7 +1149,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
run: |
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link .
- name: Clear test app cache
run: tests/Fixtures/app/console cache:clear --ansi
- name: Run Behat tests (PHP 8)
Expand Down Expand Up @@ -1155,9 +1212,11 @@ jobs:
tools: pecl, composer
extensions: intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
ini-values: memory_limit=-1
- name: Run ${{ matrix.component }} install
- name: Update project dependencies
run: |
composer update
composer global require soyuka/pmu
composer global config allow-plugins.soyuka/pmu true --no-interaction
composer global link . --permanent
composer api-platform/laravel update
- name: PHP version tweaks
run: |
Expand Down
83 changes: 22 additions & 61 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@
"willdurand/negotiation": "^3.1"
},
"require-dev": {
"api-platform/json-schema": "@dev || ^3.2 || ^4.0",
"api-platform/metadata": "@dev || ^3.2 || ^4.0",
"api-platform/state": "@dev || ^3.2 || ^4.0",
"api-platform/doctrine-common": "@dev || ^3.2 || ^4.0",
"api-platform/doctrine-odm": "@dev || ^3.2 || ^4.0",
"api-platform/doctrine-orm": "@dev || ^3.2 || ^4.0",
"api-platform/openapi": "@dev || ^3.2 || ^4.0",
"api-platform/ramsey-uuid": "@dev || ^3.2 || ^4.0",
"api-platform/jsonld": "@dev || ^3.2 || ^4.0",
"api-platform/serializer": "@dev || ^3.2 || ^4.0",
"api-platform/json-api": "@dev || ^3.2 || ^4.0",
"api-platform/http-cache": "@dev || ^3.2 || ^4.0",
"api-platform/elasticsearch": "@dev || ^3.2 || ^4.0",
"api-platform/hydra": "@dev || ^3.2 || ^4.0",
"api-platform/documentation": "@dev || ^3.2 || ^4.0",
"api-platform/validator": "@dev || ^3.2 || ^4.0",
"api-platform/graphql": "@dev || ^3.2 || ^4.0",
"api-platform/json-schema": "^3.2 || ^4.0",
"api-platform/metadata": "^3.2 || ^4.0",
"api-platform/state": "^3.2 || ^4.0",
"api-platform/doctrine-common": "^3.2 || ^4.0",
"api-platform/doctrine-odm": "^3.2 || ^4.0",
"api-platform/doctrine-orm": "^3.2 || ^4.0",
"api-platform/openapi": "^3.2 || ^4.0",
"api-platform/ramsey-uuid": "^3.2 || ^4.0",
"api-platform/jsonld": "^3.2 || ^4.0",
"api-platform/serializer": "^3.2 || ^4.0",
"api-platform/json-api": "^3.2 || ^4.0",
"api-platform/http-cache": "^3.2 || ^4.0",
"api-platform/elasticsearch": "^3.2 || ^4.0",
"api-platform/hydra": "^3.2 || ^4.0",
"api-platform/documentation": "^3.2 || ^4.0",
"api-platform/validator": "^3.2 || ^4.0",
"api-platform/graphql": "^3.2 || ^4.0",
"behat/behat": "^3.11",
"behat/mink": "^1.9",
"doctrine/cache": "^1.11 || ^2.1",
Expand Down Expand Up @@ -92,7 +92,7 @@
"ramsey/uuid": "^4.0",
"ramsey/uuid-doctrine": "^2.0",
"soyuka/contexts": "^3.3.10",
"soyuka/pmu": "^0.0.5",
"soyuka/pmu": "^0.0.7",
"soyuka/stubs-mongodb": "^1.0",
"symfony/asset": "^6.4 || ^7.1",
"symfony/browser-kit": "^6.4 || ^7.1",
Expand Down Expand Up @@ -190,47 +190,8 @@
"symfony": {
"require": "^6.4 || ^7.1"
},
"projects": [
"api-platform/doctrine-common",
"api-platform/doctrine-orm",
"api-platform/doctrine-odm",
"api-platform/metadata",
"api-platform/json-schema",
"api-platform/elasticsearch",
"api-platform/jsonld",
"api-platform/hydra",
"api-platform/openapi",
"api-platform/graphql",
"api-platform/http-cache",
"api-platform/documentation",
"api-platform/ramsey-uuid",
"api-platform/serializer",
"api-platform/state",
"api-platform/symfony",
"api-platform/validator",
"api-platform/laravel",
"api-platform/json-api"
]
},
"repositories": [
{"type": "path", "url": "./src/Doctrine/Common"},
{"type": "path", "url": "./src/Doctrine/Orm"},
{"type": "path", "url": "./src/Doctrine/Odm"},
{"type": "path", "url": "./src/Metadata"},
{"type": "path", "url": "./src/JsonSchema"},
{"type": "path", "url": "./src/Elasticsearch"},
{"type": "path", "url": "./src/JsonLd"},
{"type": "path", "url": "./src/Hydra"},
{"type": "path", "url": "./src/OpenApi"},
{"type": "path", "url": "./src/GraphQl"},
{"type": "path", "url": "./src/HttpCache"},
{"type": "path", "url": "./src/Documentation"},
{"type": "path", "url": "./src/RamseyUuid"},
{"type": "path", "url": "./src/Serializer"},
{"type": "path", "url": "./src/State"},
{"type": "path", "url": "./src/Symfony"},
{"type": "path", "url": "./src/Validator"},
{"type": "path", "url": "./src/Laravel"},
{"type": "path", "url": "./src/JsonApi"}
]
"pmu": {
"projects": ["./src/*/composer.json", "src/Doctrine/*/composer.json"]
}
}
}
4 changes: 2 additions & 2 deletions src/Doctrine/Common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
],
"require": {
"php": ">=8.1",
"api-platform/metadata": "@dev || ^3.2 || ^4.0",
"api-platform/state": "@dev || ^3.2 || ^4.0",
"api-platform/metadata": "^3.2 || ^4.0",
"api-platform/state": "^3.2 || ^4.0",
"doctrine/collections": "^2.1",
"doctrine/common": "^3.2.2",
"doctrine/persistence": "^3.2"
Expand Down
6 changes: 3 additions & 3 deletions src/Doctrine/Odm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
],
"require": {
"php": ">=8.1",
"api-platform/doctrine-common": "@dev || ^3.2 || ^4.0",
"api-platform/metadata": "@dev || ^3.2 || ^4.0",
"api-platform/state": "@dev || ^3.2 || ^4.0",
"api-platform/doctrine-common": "^3.2 || ^4.0",
"api-platform/metadata": "^3.2 || ^4.0",
"api-platform/state": "^3.2 || ^4.0",
"doctrine/mongodb-odm": "^2.2",
"doctrine/mongodb-odm-bundle": "^5.0",
"symfony/property-info": "^6.4 || ^7.1"
Expand Down
Loading

0 comments on commit b8430ab

Please sign in to comment.