Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ jobs:

- name: Commit built artifact
run: |
if git diff --quiet lib/index.js; then
echo "No changes to lib/index.js"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add lib/index.js
git commit -m "build: update lib/index.js"
git push origin master
if git diff --quiet lib/index.js; then
echo "No changes to lib/index.js"
exit 0
fi

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add lib/index.js
git commit -m "build: update lib/index.js"
git push origin master

release-please:
name: Release Please
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ multiple languages, and shows meaningful per-file diffs without external depende

## Features

- Supports any LCOV-producing tool (Bun, Jest, c8, nyc, Istanbul, PHPUnit, …) and Go coverage
- Supports any LCOV-producing tool (Bun, Node.js, Jest, c8, nyc, Istanbul, PHPUnit, …) and Go coverage
- Shows per-file coverage deltas against base branch
- Single sticky PR comment (updates existing, no spam)
- Uses `@actions/cache` for cross-run comparison
Expand Down Expand Up @@ -118,6 +118,7 @@ by prefix match to find the latest base-branch snapshot.
| Tool | Format | Example |
| --------- | ---------------- | ------------------------- |
| `bun` | LCOV | `bun:coverage/lcov.info` |
| `node` | LCOV | `node:coverage/lcov.info` |
| `lcov` | LCOV (generic) | `lcov:coverage/lcov.info` |
| `go` | Go cover profile | `go:coverage.out` |
| `gocover` | Go cover profile | `gocover:coverage.out` |
Expand All @@ -136,6 +137,12 @@ by prefix match to find the latest base-branch snapshot.
# Bun (produces LCOV)
bun test --coverage --coverage-reporter=lcov

# Node.js (produces LCOV)
node --test \
--experimental-test-coverage \
--test-reporter=lcov --test-reporter-destination=coverage/lcov.info \
--test-reporter=spec --test-reporter-destination=stdout

# Go
go test -coverprofile=coverage.out ./...
```
Expand All @@ -151,6 +158,8 @@ bun run build # bundle to lib/index.mjs

## Related

- [actions/cache](https://github.com/actions/cache)
- [@actions/cache](https://github.com/actions/cache)
- [@actions/core](https://github.com/actions/core)
- [@actions/github](https://github.com/actions/github)
- [Bun test coverage](https://bun.sh/docs/cli/test#coverage)
- [Go test coverage](https://go.dev/blog/cover)
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Coverage"
description: "Parse Bun (LCOV) and Go coverage, compute per-file deltas, and post a sticky PR comment with monospace coverage output."
description: "Parse LCOV (Bun, Node.js, Jest, etc.) and Go coverage, compute per-file deltas, and post a sticky PR comment with monospace coverage output."
author: "xseman"

branding:
Expand All @@ -10,7 +10,7 @@ inputs:
coverage-artifact-paths:
description: >
Newline- or comma-separated list of coverage artifact paths.
Each entry is `<tool>:<path>`, e.g. `bun:coverage/lcov.info` or `go:coverage.out`.
Each entry is `<tool>:<path>`, e.g. `bun:coverage/lcov.info`, `node:coverage/lcov.info`, or `go:coverage.out`.
required: true
pull-request-number:
description: >
Expand Down
268 changes: 0 additions & 268 deletions src/fixtures/bun-base.lcov

This file was deleted.

Loading