Skip to content

Commit

Permalink
Merge pull request #139 from GW2Treasures/ci/update-github-workflow-a…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
darthmaim authored Feb 7, 2024
2 parents c4770ca + 4163635 commit 4794910
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 4794910

Please sign in to comment.