9 Commits

Author SHA1 Message Date
Jamie Hardt
d5781a91d3 Update coverage.yml
Added tarpaulin
2023-06-09 22:13:51 -07:00
Jamie Hardt
a3d7206ecd Update coverage.yml
Install rustfilt
2023-06-04 23:30:06 -07:00
Jamie Hardt
5cc4fa763a Update Cargo.toml
Adding build.profiler = true
2023-06-04 23:29:11 -07:00
Jamie Hardt
d91c9193c4 Update coverage.yml 2023-06-04 23:17:41 -07:00
Jamie Hardt
afa3e24f49 Update coverage.yml 2023-06-04 23:04:35 -07:00
Jamie Hardt
d7803ba5ae Update coverage.yml
Adding flag to generate coverage(?)
2023-06-04 23:02:25 -07:00
Jamie Hardt
d3eb2377ec Update coverage.yml 2023-06-04 22:56:27 -07:00
Jamie Hardt
f28a400c78 Update coverage.yml 2023-06-04 22:46:50 -07:00
Jamie Hardt
63067f52ab Create coverage.yml 2023-06-04 22:26:23 -07:00
2 changed files with 40 additions and 0 deletions

38
.github/workflows/coverage.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Test Coverage
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Test Media
run: cd tests; sh create_test_media.sh
- name: Install rustfilt
run: cargo install rustfilt
- name: Install tapaulin
run: cargo install cargo-tarpaulin
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo tarpaulin
env:
RUSTFLAGS: "-C instrument-coverage"
- name: rust-grcov
# You may pin to the exact commit or the version.
# uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248
uses: actions-rs/grcov@v0.1.5
# with:
# Path to the configuration file (optional, relative to the repository root)
# config: # optional, default is .github/actions-rs/grcov.yml
- name: Codecov
uses: codecov/codecov-action@v3.1.4

View File

@@ -26,3 +26,5 @@ serde_json = "1.0.61"
[profile.release]
debug = true
[build]
profiler = true