Skip to content
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

First codecov coverage push requires manual active command #952

Closed
brunolnetto opened this issue Apr 4, 2023 · 0 comments
Closed

First codecov coverage push requires manual active command #952

brunolnetto opened this issue Apr 4, 2023 · 0 comments

Comments

@brunolnetto
Copy link

brunolnetto commented Apr 4, 2023

Documentation available here claims public repositories needs no token usage. In my experience, I am only first-able to upload coverage following the workflow instructions below:

  1. Sign necessary repository up in platform codecov;
  2. Copy token on repository tab "Settings";
  3. Run command below on Linux OS, with variable CODECOV_TOKEN as copied string from previous item:
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}

My question regards my expectation on user experience: should I have this active step?

There are two main ways to upload the coverage:

  1. Use run step with commands as I did on terminal:
- name: Upload coverage to Codecov
        run: |
          # Replace `linux` below with the appropriate OS
          Options are `alpine`, `linux`, `macos`, `windows`
          curl -Os https://uploader.codecov.io/latest/linux/codecov
          chmod +x codecov
          ./codecov
  1. Use action step codecov/codecov-action@v3:
- name: Upload coverage to Codecov
        uses: codecov/codecov-action@v3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant