Skip to content

Smarter, Better, Faster, Stronger

Choose a tag to compare

@pento pento released this 14 Mar 11:30
· 11 commits to main since this release
7c78e0a

What's New

Language-agnostic file type support

The action no longer hardcodes .dart as the only supported file extension. File extensions are now derived automatically from the SF: lines in your LCOV data, so it works out of the box with any language that produces LCOV coverage — Go, Python, TypeScript, C/C++, Ruby, and more. No configuration needed; existing Dart projects behave identically.

Automatic baseline management

The action now manages baseline coverage artifacts end-to-end. Provide a github-token and:

  • On pushes to the default branch: the current LCOV file is uploaded as an lcov-baseline artifact
  • On pull requests: the baseline is auto-retrieved from the latest successful default-branch run, and git refs are auto-detected from the PR event payload

This replaces the previous manual lcov-base, base-ref, and head-ref inputs — users just provide github-token and the action handles the rest.

Bug fixes

  • Fix PR comment posting: reads the PR number from GITHUB_EVENT_PATH payload instead of the non-existent GITHUB_EVENT_NUMBER env var (#1)
  • GHES compatibility: all API calls now use GITHUB_API_URL instead of hardcoded api.github.com (#2)

Breaking changes

  • The lcov-base, base-ref, head-ref, and new-file-path-prefix inputs have been removed in favor of automatic management via
    github-token
  • new-file-path-prefix is replaced by path

Testing

Test suite expanded from 3 to 25 tests covering baseline retrieval, PR comments, GHES compatibility, and multi-language extension support.