Skip to content

Can I overwrite coverage.path in the config with any command line option? #406

@lufia

Description

@lufia

motivation

In GitHub Actions reusable workflow, we likely combine two phases: run go test -coverprofile=out then collect coverage report.

For example:

    - uses: actions/setup-go@v5
      with:
        go-version: stable
    - run: go test -race -covermode=atomic -coverprofile=prof.out ./...
      shell: bash
    - k1LoW/octocov-action@v1

In this situation, I think, there is a structural problem.

  1. .octocov.yml may be stored on the caller repository
  2. on the other hand, resuable workflow will likely be stored another repository, such as octocat/workflows
  3. so we must sync coverage.report paths in the two or more repositories:
    • go test of the reusable workflow
    • .octocov.yml for each repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions