Skip to content

[v4 upgrade] Config file codecov.yml not found, or is not a file. Ignoring config #1242

Closed

Description

Upgrading to v4 I'm getting a warning:

warning - 2024-01-31 20:00:18,693 -- Config file codecov.yml not found, or is not a file. Ignoring config.

Our codecov.yml currently lives in ./.github/codecov.yml: https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/.github/codecov.yml

Is there a way to pass the correct path? I tried to use xtra_args but it doesn't seem to work:

    - name: Upload code coverage ${{ inputs.code-cov-prefix }}-${{ inputs.code-cov-name }}
      uses: codecov/codecov-action@v4
      continue-on-error: true # Note: Don't fail for upload failures
      env:
        OS: ${{ matrix.os }}
        TFM: ${{ matrix.version }}
        token: ${{ secrets.CODECOV_TOKEN }}
      with:
        file: TestResults/Cobertura.xml
        env_vars: OS,TFM
        flags: ${{ inputs.code-cov-prefix }}-${{ inputs.code-cov-name }}
        name: Code Coverage for ${{ inputs.code-cov-prefix }}-${{ inputs.code-cov-name }} on [${{ matrix.os }}.${{ matrix.version }}]
        xtra_args: --codecov-yml-path=./.github/codecov.yml

Warning: Unexpected input(s) 'xtra_args', valid inputs are ['token', 'file', 'files', 'commit_parent', 'directory', 'dry_run', 'env_vars', 'exclude', 'fail_ci_if_error', 'flags', 'name', 'os', 'override_branch', 'override_build', 'override_commit', 'override_pr', 'plugin', 'plugins', 'root_dir', 'slug', 'url', 'verbose', 'version', 'working-directory']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions