Skip to content

Commit

Permalink
fix: codecov deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tensorush committed Jul 18, 2024
1 parent 8b7bc49 commit d60be7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/templates/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: kcov-output
token: ${{ secrets.CODECOV_TOKEN }}
directory: kcov-output/
fail_ci_if_error: true
verbose: true

Expand Down
2 changes: 1 addition & 1 deletion src/templates/exe/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn build(b: *std.Build) void {
// Code coverage
const cov_step = b.step("cov", "Generate code coverage");

const cov_run = b.addSystemCommand(&.{ "kcov", "--clean", "--include-pattern=src/", "kcov-output" });
const cov_run = b.addSystemCommand(&.{ "kcov", "--clean", "--include-pattern=src/", "kcov-output/" });
cov_run.addArtifactArg(tests);
cov_step.dependOn(&cov_run.step);
b.default_step.dependOn(cov_step);
Expand Down
2 changes: 1 addition & 1 deletion src/templates/lib/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn build(b: *std.Build) void {
// Code coverage
const cov_step = b.step("cov", "Generate code coverage");

const cov_run = b.addSystemCommand(&.{ "kcov", "--clean", "--include-pattern=src/", "kcov-output" });
const cov_run = b.addSystemCommand(&.{ "kcov", "--clean", "--include-pattern=src/", "kcov-output/" });
cov_run.addArtifactArg(tests);
cov_step.dependOn(&cov_run.step);
b.default_step.dependOn(cov_step);
Expand Down
2 changes: 1 addition & 1 deletion src/templates/prt/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn build(b: *std.Build) void {
// Code coverage
const cov_step = b.step("cov", "Generate code coverage");

const cov_run = b.addSystemCommand(&.{ "kcov", "--clean", "--include-pattern=src/", "kcov-output" });
const cov_run = b.addSystemCommand(&.{ "kcov", "--clean", "--include-pattern=src/", "kcov-output/" });
cov_run.addArtifactArg(tests);
cov_step.dependOn(&cov_run.step);
b.default_step.dependOn(cov_step);
Expand Down

0 comments on commit d60be7c

Please sign in to comment.