Skip to content

Commit

Permalink
Changes for migrating codecov-actions to v4 (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire authored May 8, 2024
1 parent d32166e commit c797843
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Checkout apigee_edge module
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: drupal/modules/contrib/apigee_edge

Expand Down Expand Up @@ -150,15 +150,16 @@ jobs:
- name: Artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: browser-output-${{ matrix.php-version }}-${{ matrix.drupal-core }}-${{ matrix.instance-type }}-artifact
path: drupal/sites/simpletest/browser_output/*

- name: Upload coverage to Codecov
if: ${{ matrix.drupal-core == '10.1.x' && matrix.php-version == '8.1' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /tmp/coverage_${{ matrix.instance-type }}.xml
name: codecov-umbrella
fail_ci_if_error: true
Expand Down

0 comments on commit c797843

Please sign in to comment.