Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
# uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1
with:
php-version: '8.1'
coverage: 'none'
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
- 8.2
- 8.3
- 8.4
- 8.5
dependencies_level:
- --prefer-lowest
- ""
Expand All @@ -65,7 +67,8 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
# uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1
with:
coverage: 'xdebug'
php-version: ${{ matrix.php_version }}
Expand Down Expand Up @@ -101,17 +104,20 @@ jobs:
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml
- name: Upload coverage to Codecov
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
uses: codecov/codecov-action@v5
# uses: codecov/codecov-action@v5
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
uses: codecov/test-results-action@v1
# uses: codecov/test-results-action@v1
uses: codecov/test-results-action@7024b0ed56bb02ec9dd191175a599a93803f0474
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Qlty
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
uses: qltysh/qlty-action/coverage@v1
# uses: qltysh/qlty-action/coverage@v1
uses: qltysh/qlty-action/coverage@a2277a908db90c4c868832fb9204521fb940fdb4
with:
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: cobertura.xml
Expand All @@ -125,10 +131,12 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: technote-space/workflow-conclusion-action@v3
# - uses: technote-space/workflow-conclusion-action@v3
- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]
# uses: slackapi/[email protected]
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844
with:
# Slack channel id, channel name, or user id to post a message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
Expand Down