Hello @Chocorean
I faced the same issue with reporting code-coverage from Github Actions to SonarCloud and found the following solution:
- name: Fix code coverage paths
working-directory: ./coverage
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.json
Add this step after running RSpec and before the sonarcloud analysis. It will fix paths in coverage.json and code-coverage will be reported successfully.