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