Skip to content

Commit

Permalink
Update workflow configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed May 16, 2024
1 parent f806a4a commit f9dc0ac
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 64 deletions.
4 changes: 0 additions & 4 deletions .coveralls.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Environment"
uses: shivammathur/setup-php@v2
with:
php-version: "7.1"
coverage: "xdebug"

- name: "Checkout"
uses: actions/checkout@v4

- name: "Dependencies"
run: |
php --version
composer --version
COMPOSER_MEMORY_LIMIT=-1 composer update
- name: "Analysis"
- name: "Application"
run: |
vendor/bin/phpstan --version
vendor/bin/phpstan analyse src --error-format=github
vendor/bin/phpstan analyse src/ --error-format=github
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,36 @@ jobs:
- php-version: "8.3"

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Environment"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: "xdebug"

- name: "Checkout"
uses: actions/checkout@v4

- name: "Dependencies"
run: |
php --version
composer --version
COMPOSER_MEMORY_LIMIT=-1 composer update
- name: "Tests"
- name: "Application"
run: |
mkdir -p build/logs
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: "Coverage"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: php-${{ matrix.php-version }}
COVERALLS_PARALLEL: true
run: |
vendor/bin/php-coveralls --version
vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
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"
Expand All @@ -61,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
46 changes: 0 additions & 46 deletions .github/workflows/metrics.yml

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"psr/log": "^1.0|^2.0|^3.0"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.5.3",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-phpunit": "^1.0",
Expand Down

0 comments on commit f9dc0ac

Please sign in to comment.