Skip to content

Commit

Permalink
ci(php-sdk & php-idna-translator): using artifacts to upload and down…
Browse files Browse the repository at this point in the history
…load coverage reports
  • Loading branch information
AsifNawaz-cnic committed Mar 22, 2024
1 parent 073b910 commit ee94600
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/php-idna-translator-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/php-idna-translator-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions .github/workflows/php-sdk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/php-sdk-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ee94600

Please sign in to comment.