diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77e0f1f1..068937b7 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 @@ -155,7 +147,6 @@ jobs: - '8.3' - '8.4' dependencies: - - lowest - highest steps: @@ -176,14 +167,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 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 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": {