nus-cs2103-AY2122S1 / forum

19 stars 2 forks source link

Adding forked tP to CodeCov💡 #230

Open bryanwee023 opened 3 years ago

bryanwee023 commented 3 years ago

Hi guys,

If you guys are a confused on the instructions to add your organisation's fork to CodeCov:

  1. Sign up to CodeCov
  2. Enable Github Actions on your fork
  3. Make a trivial commit to your fork (This runs the CI/CD workflow which uploads a report to CodeCov)
  4. CodeCov should have detected your fork!

I took a embarrassing amount of time figuring this out. So hopefully this useful to some of you :)

damithc commented 3 years ago

@bryanwee023 this didn't help? Or was some info missing in relevant part of the DevOps Guide? image

bryanwee023 commented 3 years ago

@damithc oh, the phrasing must have thrown me off.

Perhaps it will be better to merge the last 2 sentences?

That will enable the Github Actions that are already included in the repo you forked set up codecov, as explained in the DevOps guide

I interpreted the last sentence as a standalone step 😅 .

vimuthm commented 3 years ago

Haha I too spent an unexpected amount of time on this xD.

To add on :

damithc commented 3 years ago

I interpreted the last sentence as a standalone step 😅 .

It is a separate step. I don't think enabling GitHub Actions automatically sets up CodeCov. But setting up CodeCov before enabling GitHub actions might work better. And yes, it's best to mention that CodeCov report will only trigger the next time something is pushed to the repo. Will tweak the instructions next time (too late to do that for this round though, as most have forked already).