diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 44dde982..f83de4e2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,11 +8,35 @@ on: pull_request: ~ jobs: + cs-fix: + name: Run code style check + runs-on: "ubuntu-20.04" + strategy: + matrix: + php: + - '8.0' + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP Action + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + extensions: 'pdo_sqlite, gd' + tools: cs2pr + + - uses: "ramsey/composer-install@v1" + with: + dependency-versions: "highest" + + - name: Run code style check + run: composer run-script check-cs -- --format=checkstyle | cs2pr + tests: name: Tests runs-on: "ubuntu-20.04" timeout-minutes: 10 - continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false @@ -20,8 +44,9 @@ jobs: php: - '7.3' - '7.4' + - '8.0' + - '8.1' composer_options: [ "" ] - experimental: [false] steps: - uses: actions/checkout@v2 @@ -44,6 +69,3 @@ jobs: - name: Run test suite run: composer run-script --timeout=600 test - - - name: Run code style check - run: composer run-script check-cs -- --format=checkstyle | cs2pr diff --git a/composer.json b/composer.json index b116ec82..9cfa5141 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,11 @@ } ], "require": { - "php": "^7.3", + "php": "^7.3 || ^8.0", "ext-json": "*", "ezsystems/ezplatform-kernel": "^1.3@dev", - "ezsystems/ezplatform-core": "^2.1@dev", - "ezsystems/ezplatform-admin-ui": "^2.2@dev", + "ezsystems/ezplatform-core": "^2.3@dev", + "ezsystems/ezplatform-admin-ui": "^2.3@dev", "ocramius/proxy-manager": "^2.2", "symfony/proxy-manager-bridge": "^5.0", "zetacomponents/system-information": "^1.1.1" @@ -22,6 +22,12 @@ "require-dev": { "ibexa/ci-scripts": "^0.1@dev", "ezsystems/ezplatform-code-style": "^0.1", + "ezsystems/ezplatform-content-forms": "^1.3@dev", + "ezsystems/ezplatform-http-cache": "^2.3@dev", + "ezsystems/ezplatform-rest": "^1.3@dev", + "ezsystems/ezplatform-richtext": "^2.3@dev", + "ezsystems/ezplatform-search": "^1.2@dev", + "ezsystems/ezplatform-user": "^2.3@dev", "friendsofphp/php-cs-fixer": "^2.16", "ezsystems/doctrine-dbal-schema": "^1.0@dev", "phpunit/phpunit": "^8.2",