Skip to content

Commit

Permalink
feat(CI): ✨ Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnbr committed May 28, 2024
1 parent 6d514f4 commit 8e8c798
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ jobs:
- name: Build
run: nix build
- name: Run tests
run: nix flake check
run: nix flake check -v --print-build-logs
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
# Additional darwin specific inputs can be set here
pkgs.libiconv
];
***REMOVED***

# Additional environment variables can be set directly
# MY_CUSTOM_VAR = "some value";
Expand Down Expand Up @@ -140,6 +141,12 @@
partitions = 1;
partitionType = "count";
cargoNextestExtraArgs = "--all-features";
***REMOVED***
});

myCrateCoverage = craneLib.cargoTarpaulin (commonArgs
// {
inherit cargoArtifacts;
});
};

Expand All @@ -148,10 +155,10 @@
default = my-crate;
}
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
my-crate-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs
spenso-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs
// {
inherit cargoArtifacts;
cargoExtraArgs = "-- --all-features";
cargoExtraArgs = "";
});
};

Expand Down

0 comments on commit 8e8c798

Please sign in to comment.