diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 35e63ee..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1,4 +0,0 @@ -# .coveralls.yml -coverage_clover: "build/logs/clover.xml" -json_path: "build/logs/coveralls-upload.json" -service_name: "travis-ci" diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index a6f743b..f1dfd8d 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -13,7 +13,7 @@ jobs: - name: "Checkout" uses: actions/checkout@v4 - - name: "Build environment" + - name: "Environment" uses: shivammathur/setup-php@v2 with: php-version: "7.1" @@ -26,7 +26,6 @@ jobs: COMPOSER_MEMORY_LIMIT=-1 composer update - name: "Application" - run: vendor/bin/phpstan --version - - - name: "Analyses" - run: vendor/bin/phpstan analyse src/ --error-format=github + run: | + vendor/bin/phpstan --version + vendor/bin/phpstan analyse src/ --error-format=github diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2dbb5c..b025ba9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: - name: "Checkout" uses: actions/checkout@v4 - - name: "Build environment" + - name: "Environment" uses: shivammathur/setup-php@v2 with: php-version: "${{ matrix.php-version }}" @@ -40,19 +40,18 @@ jobs: - name: "Application" run: | mkdir -p build/logs - wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.3/php-coveralls.phar -O coveralls.phar - chmod +x coveralls.phar - php coveralls.phar --version - - - name: "Tests" - run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml + vendor/bin/phpunit --coverage-clover build/logs/clover.xml - name: "Coverage" env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_FLAG_NAME: php-${{ matrix.php-version }} COVERALLS_PARALLEL: true - run: php coveralls.phar -v + run: | + wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.3/php-coveralls.phar -O coveralls.phar + chmod +x coveralls.phar + php coveralls.phar --version + php coveralls.phar --coverage_clover=build/logs/clover.xml -v coverage: name: "Coverage" @@ -64,5 +63,5 @@ jobs: - name: "Coverage" uses: coverallsapp/github-action@v2 with: - github-token: ${{ secrets.github_token }} + github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml deleted file mode 100644 index 4e77b85..0000000 --- a/.github/workflows/metrics.yml +++ /dev/null @@ -1,47 +0,0 @@ -# .github/workflows/metrics.yml -name: "Metrics" - -on: [ push ] - -jobs: - - build: - name: "PHP Metrics" - runs-on: ubuntu-22.04 - - steps: - - name: "Checkout" - uses: actions/checkout@v4 - - - name: "Build environment" - uses: shivammathur/setup-php@v2 - with: - php-version: "7.1" - coverage: "xdebug" - - - name: "Dependencies" - run: | - php --version - composer --version - COMPOSER_MEMORY_LIMIT=-1 composer update - - - name: "Application" - run: | - mkdir -p build/logs - wget -c -nc --retry-connrefused --tries=0 https://github.com/phpmetrics/PhpMetrics/releases/download/v2.8.1/phpmetrics.phar -O phpmetrics.phar - chmod +x phpmetrics.phar - php phpmetrics.phar --version - - - name: "Tests" - run: vendor/bin/phpunit --log-junit build/logs/junit.xml - - - name: "Calculates" - run: php phpmetrics.phar --git --junit=build/logs/junit.xml --report-html=build/logs/ src/ - - - name: "Upload artifact" - uses: actions/upload-artifact@v4 - with: - name: "metrics" - path: | - build/logs - !build/logs/junit.xml