diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 9e98451..e4cef1e 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -18,7 +18,8 @@ jobs: matrix: include: - { php-version: "8.1", dependencies: "lowest", require_admin_bundle: false } - - { php-version: "8.1", dependencies: "highest", require_admin_bundle: true } + - { php-version: "8.2", dependencies: "highest", require_admin_bundle: true } + - { php-version: "8.3", dependencies: "highest", pimcore_version: "11.x-dev as 11.0.0", require_admin_bundle: true } steps: - name: "Checkout code" uses: "actions/checkout@v2" @@ -34,10 +35,19 @@ jobs: REQUIRE_ADMIN_BUNDLE: "${{ matrix.require_admin_bundle }}" run: | .github/ci/scripts/setup-pimcore-environment.sh + + - name: "Update Pimcore version" + env: + PIMCORE_VERSION: "${{ matrix.pimcore_version }}" + run: | + if [ ! -z "$PIMCORE_VERSION" ]; then + composer require --no-update pimcore/pimcore:"${PIMCORE_VERSION}" + fi + - name: "Install dependencies with Composer" - uses: "ramsey/composer-install@v1" + uses: "ramsey/composer-install@v2" with: dependency-versions: "${{ matrix.dependencies }}" - name: "Run a static analysis with phpstan/phpstan" - run: "vendor/bin/phpstan analyse --memory-limit=-1" \ No newline at end of file + run: "vendor/bin/phpstan analyse --memory-limit=-1" diff --git a/composer.json b/composer.json index 6f26e1c..e5855d0 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "prefer-stable": true, "minimum-stability": "dev", "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "pimcore/pimcore": "^11.0", "pimcore/output-data-config-toolkit-bundle": "^4.1 || ^5.0" },