Skip to content

Commit

Permalink
(ci) merged lint inside coveritup and track metric
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Mar 14, 2024
1 parent 5609405 commit 7356664
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 51 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/coding-standards.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Code Coverage
name: Coveritup

on: [fork, pull_request, push, workflow_dispatch]
on: [fork, pull_request, push]

jobs:
code-coverage:
name: Code Coverage
Coveritup:
name: Coveritup

runs-on: ubuntu-latest

Expand All @@ -23,6 +23,7 @@ jobs:
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
Expand All @@ -35,11 +36,27 @@ jobs:
key: php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: php-${{ matrix.php-version }}-composer-

- name: Install dependencies with composer
run: composer install --no-interaction --no-progress --no-suggest

- name: Create build directory
run: mkdir -p .build/logs
- 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=.build/logs/clover.xml
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

0 comments on commit 7356664

Please sign in to comment.