-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation on matrix build, only upload coverage once #40
Comments
Hello @jhidding, thank you for bringing this up! Regarding your issue about how |
Github Actions gives a connection time-out, retries after 30 seconds end-so-on. |
@jhidding Any updates on this particular issue? If the problem still persists, we can punch in a support ticket |
I've started using Codecov with GitHub Actions (on this test project for now) and I'm wondering what's the best practice for matrix builds!? This particular project tests the code against 3 different Node.js version and with my current workflow I'm uploading 3 different coverage reports (but they are always the same): This doesn't make much sense to me. Ideally, only one coverage report would be uploaded. Now, I understand I can add an What is the recommended best practice to upload the coverage report only once independently of the number of jobs due to matrix configurations in GitHub actions? |
Multiple Node.js and multiple OSExpand on what @jhidding and @rfgamaral have said. If you are testing on multiple Node.js versions and multiple OS at the same time, something like this will work: strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
runs-on: ${{ matrix.os }}
steps:
- name: Post Coverage
uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '10.x' This posts the coverage reports to Codecov, only when the OS is ResultThe Two subdirectories |
When testing in a matrix, uploads often fail after the first one. I'm testing against different versions of Python, and I only need to upload the coverage information once, by including
in the codecov job. It took me a while to figure this out, so maybe it is nice to include this in the readme.
The text was updated successfully, but these errors were encountered: