diff --git a/.github/workflows/php-idna-translator-release.yml b/.github/workflows/php-idna-translator-release.yml index b810d4f..ed5349d 100644 --- a/.github/workflows/php-idna-translator-release.yml +++ b/.github/workflows/php-idna-translator-release.yml @@ -41,8 +41,12 @@ jobs: composer update --no-dev - name: PHP Class Documentation run: composer run-script docs - - name: Code Coverage Report - run: composer run-script coverage + - name: Download coverage report folder from previous workflow + uses: actions/download-artifact@v4 + with: + pattern: coverage-folder-* + merge-multiple: true + path: reports - name: Release env: GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} diff --git a/.github/workflows/php-idna-translator-test.yml b/.github/workflows/php-idna-translator-test.yml index b809bc9..8b6a4cd 100644 --- a/.github/workflows/php-idna-translator-test.yml +++ b/.github/workflows/php-idna-translator-test.yml @@ -51,3 +51,9 @@ jobs: composer update - name: Code Validation & Coverage run: composer run-script coverage + - name: Upload coverage report folder + uses: actions/upload-artifact@v4 + with: + name: coverage-folder-${{ matrix.php-version }} + path: reports + retention-days: 1 diff --git a/.github/workflows/php-sdk-release.yml b/.github/workflows/php-sdk-release.yml index 80bf8a5..6ea7ecf 100644 --- a/.github/workflows/php-sdk-release.yml +++ b/.github/workflows/php-sdk-release.yml @@ -41,8 +41,12 @@ jobs: composer update --no-dev - name: PHP Class Documentation run: composer run-script docs - - name: Code Coverage Report - run: composer run-script test + - name: Download coverage report folder from previous workflow + uses: actions/download-artifact@v4 + with: + pattern: coverage-folder-* + merge-multiple: true + path: reports - name: Release env: GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} diff --git a/.github/workflows/php-sdk-test.yml b/.github/workflows/php-sdk-test.yml index 212b533..de675c3 100644 --- a/.github/workflows/php-sdk-test.yml +++ b/.github/workflows/php-sdk-test.yml @@ -50,10 +50,16 @@ jobs: run: | echo "$HOME/.composer/vendor/bin" >> "$GITHUB_PATH" composer update - - name: Code Validation + - name: Code Validation & Coverage env: TESTS_USER_HEXONET: ${{ secrets.TESTS_USER_HEXONET }} TESTS_USERPASSWORD_HEXONET: ${{ secrets.TESTS_USERPASSWORD_HEXONET }} TESTS_USER_CNR: ${{ secrets.TESTS_USER_CNR }} TESTS_USERPASSWORD_CNR: ${{ secrets.TESTS_USERPASSWORD_CNR }} run: composer run-script test + - name: Upload coverage report folder + uses: actions/upload-artifact@v4 + with: + name: coverage-folder-${{ matrix.php-version }} + path: reports + retention-days: 1 \ No newline at end of file