From 77dc0d683e2dfe8c5355db2b8b1990e4ff3cd62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 31 Dec 2021 09:03:31 +0100 Subject: [PATCH] Fix: Enable required extensions only --- .github/workflows/integrate.yaml | 17 +++++++---------- .github/workflows/renew.yaml | 7 ++----- composer.lock | 5 +---- 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index da44e89c..24de986a 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -8,9 +8,6 @@ on: # yamllint disable-line rule:truthy branches: - "main" -env: - PHP_EXTENSIONS: "mbstring, tokenizer" - jobs: code-coverage: name: "Code Coverage" @@ -33,7 +30,7 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "xdebug" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Set up problem matchers for phpunit/phpunit" @@ -82,7 +79,7 @@ jobs: uses: "actions/checkout@v2.4.0" - name: "Lint YAML files" - uses: "ibiqlik/action-yamllint@v3" + uses: "ibiqlik/action-yamllint@v3.1" with: config_file: ".yamllint.yaml" file_or_dir: "." @@ -92,7 +89,7 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Validate composer.json and composer.lock" @@ -150,7 +147,7 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Determine composer cache directory" @@ -192,7 +189,7 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "xdebug" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Determine composer cache directory" @@ -236,7 +233,7 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, curl, dom, json, mbstring, pcntl, phar, posix, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Determine composer cache directory" @@ -285,7 +282,7 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Set up problem matchers for phpunit/phpunit" diff --git a/.github/workflows/renew.yaml b/.github/workflows/renew.yaml index 75502b1a..324a0c59 100644 --- a/.github/workflows/renew.yaml +++ b/.github/workflows/renew.yaml @@ -6,9 +6,6 @@ on: # yamllint disable-line rule:truthy schedule: - cron: "0 0 1 1 *" -env: - PHP_EXTENSIONS: "mbstring" - jobs: license: name: "License" @@ -33,11 +30,11 @@ jobs: uses: "shivammathur/setup-php@2.16.0" with: coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" + extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter" php-version: "${{ matrix.php-version }}" - name: "Validate composer.json and composer.lock" - run: "composer validate --strict" + run: "composer validate --ansi --strict" - name: "Determine composer cache directory" uses: "./.github/actions/composer/composer/determine-cache-directory" diff --git a/composer.lock b/composer.lock index 23f757ce..78faf13f 100644 --- a/composer.lock +++ b/composer.lock @@ -1823,9 +1823,6 @@ "require": { "php": "^7.1 || ^8.0" }, - "replace": { - "myclabs/deep-copy": "self.version" - }, "require-dev": { "doctrine/collections": "^1.0", "doctrine/common": "^2.6", @@ -6237,5 +6234,5 @@ "platform-overrides": { "php": "7.4.26" }, - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.2.0" }