Our BE team is already sending coverage for their PHP unit tests and now we are about to add our frontend ones. We are using GH actions but a different ones. FE is using coverallsapp/github-action
so we only had to add the below to our .yml file
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GH_TOKEN }}
path-to-lcov: ../coverage/lcov.info
Now what happens is that FE coverage overwrites the BE and the opposite. Can Coveralls handle two values. I read https://github.com/coverallsapp/github-action?tab=readme-ov-file#complete-parallel-job-example, but the thing is that only FE and Jest tests are using this GH action…
BE .yml part:
- name: PHP Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GH_TOKEN }}
run: docker-compose -f ci/github/test-coverage.yml exec -T -e GITHUB_REF -e GITHUB_ACTIONS -e GITHUB_RUN_ID -e GITHUB_EVENT_NAME -e COVERALLS_REPO_TOKEN runner sudo -E storage/app/php-coveralls -v --coverage_clover=/var/www/clover.xml --root_dir=/var/www --json_path=/var/www/storage/app/coveralls-upload.json