Skip to content

Commit

Permalink
chore: build with test profile
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Feb 22, 2024
1 parent 8407008 commit 1c36569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Run the test sqlx migrations
run: cargo sqlx migrate run --source file-service/migrations
- name: Run tests and generate coverage report
run: LLVM_PROFILE_FILE="{}-%Nm" cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info
run: RUSTFLAGS="--cfg profile=git-test" LLVM_PROFILE_FILE="{}-%Nm" cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info
- name: Test documentation code snippets
run: cargo test --doc --all-features --workspace
- name: Upload coverage to Coveralls
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ panic = "abort"
[profile.release]
panic = "abort"

[profile.git-test]
inherits = "dev"
debug = false

# [workspace.dependencies]
# tracing = "0.1.37"

0 comments on commit 1c36569

Please sign in to comment.