(fix) README - travis and scrutinizer badges are obsolete #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coveritup | |
on: [fork, pull_request, push] | |
jobs: | |
Coveritup: | |
name: Coveritup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['8.3'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: xdebug | |
extensions: intl | |
ini-values: memory_limit=-1 | |
php-version: ${{ matrix.php-version }} | |
- run: curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh | |
- name: Determine composer cache directory | |
id: determine-composer-cache-directory | |
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies installed with composer | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.determine-composer-cache-directory.outputs.directory }} | |
key: php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: php-${{ matrix.php-version }}-composer- | |
- uses: kevincobain2000/action-coveritup@v2 | |
with: | |
type: composer-install-time | |
command: composer install --no-interaction --no-progress --no-suggest | |
record: runtime | |
- name: Collect code coverage with Xdebug and phpunit/phpunit | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- uses: kevincobain2000/action-coveritup@v2 | |
with: | |
type: coverage | |
command: ./cover-totalizer coverage.xml | |
- uses: kevincobain2000/action-coveritup@v2 | |
with: | |
type: composer-dependencies | |
command: composer show -i --name-only 2>/dev/null | wc -l | awk '{print $NF}' | |
- name: "PHPCS" | |
run: vendor/bin/phpcs --ignore=views --standard=PSR2 src | |
- uses: kevincobain2000/action-coveritup@v2 | |
with: | |
pr_comment: true |