From a7e390b298878d65abbadce0e70314ed363c3639 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 2 Jan 2024 18:46:01 +0100 Subject: [PATCH 1/4] [TEST] Test with the v8.x version of php-css-parser --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0ddea27f..33d24e24 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "php": "~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", "ext-dom": "*", "ext-libxml": "*", - "sabberworm/php-css-parser": "^8.7.0", + "sabberworm/php-css-parser": "8.x-dev", "symfony/css-selector": "^5.4.35 || ~6.3.12 || ^6.4.3 || ^7.0.3" }, "require-dev": { From 15a07e434f3d6d08525be540fc054ec4228f793c Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 8 Sep 2024 19:32:31 +0200 Subject: [PATCH 2/4] Do not cache the dependencies --- .github/workflows/ci.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77e0f1f1..e1dba8ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,14 +119,6 @@ jobs: - name: Show the Composer configuration run: composer config --global --list - - name: Cache dependencies installed with composer - uses: actions/cache@v4 - with: - path: ~/.cache/composer - key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - php${{ matrix.php-version }}-composer- - - name: Install Composer dependencies run: composer install --no-progress @@ -176,14 +168,6 @@ jobs: - name: Show the Composer configuration run: composer config --global --list - - name: Cache dependencies installed with composer - uses: actions/cache@v4 - with: - path: ~/.cache/composer - key: php${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - php${{ matrix.php-version }}-${{ matrix.dependencies }}-composer- - - name: Install Composer dependencies run: | if [[ "${{ matrix.dependencies }}" == 'lowest' ]]; then From fe64498c27065f582e444aec2dcd2213593eec04 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 8 Sep 2024 19:33:17 +0200 Subject: [PATCH 3/4] Drop the coverage workflow --- .github/workflows/codecoverage.yml | 72 ------------------------------ 1 file changed, 72 deletions(-) delete mode 100644 .github/workflows/codecoverage.yml diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml deleted file mode 100644 index c83b2f01..00000000 --- a/.github/workflows/codecoverage.yml +++ /dev/null @@ -1,72 +0,0 @@ -# https://help.github.com/en/categories/automating-your-workflow-with-github-actions - -on: - push: - branches: - - main - pull_request: - -name: Code coverage - -jobs: - code-coverage: - name: Code coverage - - runs-on: ubuntu-22.04 - - strategy: - fail-fast: false - matrix: - php-version: - - '8.3' - dependencies: - - highest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - ini-file: development - tools: composer:v2 - coverage: xdebug - - - name: Show the Composer version - run: composer --version - - - name: Show the Composer configuration - run: composer config --global --list - - - name: Cache dependencies installed with composer - uses: actions/cache@v4 - with: - path: ~/.cache/composer - key: php${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - php${{ matrix.php-version }}-${{ matrix.dependencies }}-composer- - - - name: Install Composer dependencies - run: | - if [[ "${{ matrix.dependencies }}" == 'lowest' ]]; then - DEPENDENCIES='--prefer-lowest'; - else - DEPENDENCIES=''; - fi; - composer install --no-progress; - composer update --with-dependencies --no-progress "${DEPENDENCIES}"; - composer show; - - - name: Run Tests - run: composer ci:tests:coverage - - - name: Show generated coverage files - run: ls -lah - - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@v2 - env: - github-token: ${{ secrets.GITHUB_TOKEN }} - file: coverage.xml From 4cd2367c0baec28d65741504a64e3ee906aff4a3 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 27 Oct 2024 18:48:45 +0100 Subject: [PATCH 4/4] Only use the highest dependencies --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1dba8ac..068937b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,7 +147,6 @@ jobs: - '8.3' - '8.4' dependencies: - - lowest - highest steps: