• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsarahq / taskrunner / 5247143392
45%

Build:
DEFAULT BRANCH: master
Ran 12 Jun 2023 06:23PM UTC
Jobs 1
Files 17
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jun 2023 06:23PM UTC coverage: 52.594% (-0.7%) from 53.246%
5247143392

push

github

toniihsia
taskrunner goextensions builder: define RunWithFlags

The purpose of `WrapWithGoBuild` is to ensure that that a specified
Go package can build before running the logic passed in `Run`.

`WrapWithGoBuild` does this by cloning the original task, then overwriting
the `Run` fn to first build the specified package  before running any logic
defined in the task's original `Run`.

Notably, `WrapWithGoBuild` defines a `Run` fn on the cloned task regardless
of whether `Run` is defined on the original task.

For tasks that are both:
* wrapped with `WrapWithGoBuild`
* leveraging `RunWithFlags`
this causes a bug to occur where `WrapWithGoBuild`'s cloned task has both
a `Run` fn and a `RunWithFlags` fn.
Both being defined causes the registry to return an error about only
allowing one or the other to be defined.

Update `WrapWithGoBuild` to only define a `Run` fn on the cloned task
if a `Run` fn was included in the original task. Otherwise, default to
defining `RunWithFlags` since `Run` has been deprecated in favor of `RunWithFlags`.

28 of 28 new or added lines in 1 file covered. (100.0%)

730 of 1388 relevant lines covered (52.59%)

4.79 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
28
4.88
-0.56% goextensions/builder.go
Jobs
ID Job ID Ran Files Coverage
1 5247143392.1 12 Jun 2023 06:23PM UTC 17
52.59
GitHub Action Run
Source Files on build 5247143392
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 56051dfc on github
  • Prev Build on master (#5224514714)
  • Next Build on master (#5257333342)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc