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-baselineartifact - 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_PATHpayload instead of the non-existentGITHUB_EVENT_NUMBERenv var (#1) - GHES compatibility: all API calls now use
GITHUB_API_URLinstead of hardcodedapi.github.com(#2)
Breaking changes
- The
lcov-base,base-ref,head-ref, andnew-file-path-prefixinputs have been removed in favor of automatic management via
github-token new-file-path-prefixis replaced bypath
Testing
Test suite expanded from 3 to 25 tests covering baseline retrieval, PR comments, GHES compatibility, and multi-language extension support.