From abdae168228096e4de367271a1c96000a5dd03b9 Mon Sep 17 00:00:00 2001 From: hexonthebeach Date: Tue, 18 Jun 2024 10:15:02 +0200 Subject: [PATCH] Updated githubactions (#55) * Updated GithubActions Updated checkout , cache , download-artifact and upload-artifact v3 to v4 according to deprecation warnings. * Added overwrite-flag to upload-artifact Action * Upgraded codecov-action to v4 --- .github/workflows/main.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 11c4d8e..7b4a76d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,11 @@ jobs: max-parallel: 2 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Composer packages id: composer-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: vendor key: php-${{ matrix.version }}-${{ github.ref }} @@ -45,7 +45,7 @@ jobs: max-parallel: 1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup PHP id: setup-php @@ -58,7 +58,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: vendor key: php-${{ matrix.version }}-${{ github.ref }} @@ -67,10 +67,11 @@ jobs: run: php vendor/bin/phpunit --coverage-clover=coverage.xml --whitelist=./src ./tests - name: Archive code coverage results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: code-coverage-report path: coverage.xml + overwrite: true retention-days: 1 @@ -80,15 +81,15 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download code coverage results - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: code-coverage-report - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: ./coverage.xml token: ${{ secrets.CODECOV_TOKEN }}