From 7971d06c1cce0779e0a87e98c6bd3ee32ad96fdb 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 dev version of php-css-parser --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e44a2649..f093c4c2 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 || ~8.5.0", "ext-dom": "*", "ext-libxml": "*", - "sabberworm/php-css-parser": "^9.3.0", + "sabberworm/php-css-parser": "dev-main", "symfony/css-selector": "^5.4.35 || ~6.3.12 || ^6.4.3 || ^7.0.3 || ^8.0.0", "thecodingmachine/safe": "^1.3 || ^2.5 || ^3.4" }, From 2bbe9e2e2d0c8cbfdfc4e4531fd359f9f087ebe4 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 70238be3..7f95b004 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,14 +121,6 @@ jobs: - name: Show the Composer configuration run: composer config --global --list - - name: Cache dependencies installed with composer - uses: actions/cache@v5 - 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 @@ -181,14 +173,6 @@ jobs: - name: Show the Composer configuration run: composer config --global --list - - name: Cache dependencies installed with composer - uses: actions/cache@v5 - 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 d63b2d552e4c998afecdca80527d2425a6ac3944 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 | 74 ------------------------------ 1 file changed, 74 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 5bd3e3d3..00000000 --- a/.github/workflows/codecoverage.yml +++ /dev/null @@ -1,74 +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@v6 - - - 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@v5 - 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 check:tests:coverage - - - name: Show generated coverage files - run: ls -lah - - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@v2 - with: - fail-on-error: false - env: - github-token: ${{ secrets.GITHUB_TOKEN }} - file: coverage.xml From f493e3c5a9241a6973d9419246d9ea20e8fc9103 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 27 Oct 2024 18:49:14 +0100 Subject: [PATCH 4/4] Only test with the highest version of the dependencies --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f95b004..3efbb52d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -152,7 +152,6 @@ jobs: - '8.4' - '8.5' dependencies: - - lowest - highest steps: