Skip to content

Update github workflow actions #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2024
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
phar: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
Expand All @@ -53,7 +53,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -75,7 +75,7 @@ jobs:
run: vendor/bin/phpunit --configuration phpunit.xml --bootstrap build/autoload.php

- name: Download base coverage
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
if: github.event_name == 'pull_request' && matrix.phar == false
continue-on-error: true
with:
Expand All @@ -86,22 +86,22 @@ jobs:
workflow: .github/workflows/ci.yml
- name: Report coverage
if: github.event_name == 'pull_request' && matrix.phar == false
uses: lucassabreu/comment-coverage-clover@v0.9.1
uses: lucassabreu/comment-coverage-clover@v0.12.0
with:
base-file: ./coverage-base/clover.xml
file: ./clover.xml
with-chart: false
signature: PHP ${{ matrix.php }}

- name: Upload coverage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.phar == false
with:
name: coverage-${{ matrix.php }}
path: ./clover.xml

- name: Upload phar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.phar
with:
name: phar
Expand Down