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 691cf2a commit 4df5436
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 65 deletions.
4 changes: 0 additions & 4 deletions .coveralls.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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"
Expand All @@ -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
47 changes: 0 additions & 47 deletions .github/workflows/metrics.yml

This file was deleted.

0 comments on commit 4df5436

Please sign in to comment.