Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Dec 31, 2023
1 parent c0c4ebe commit 3512762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dev-crates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ jobs:
run: |
make rust-coverage RUST_PKG=types
echo "MIN_CODE_COV=$(yq .crates.types.min_code_cov project.yaml)" >> $GITHUB_ENV
echo "CURR_CODE_COV=$(make rust-coverage-percent RUST_PKG=types)" >> $GITHUB_ENV
- name: fail crates/types coverage under ${{ env.MIN_CODE_COV }}%
run: |
if [[ $(make rust-coverage-percent RUST_PKG=types) -lt ${{ env.MIN_CODE_COV }} ]]; then
echo 'coverage dropped below ${{ env.MIN_CODE_COV }}%'
if [[ ${{ env.CURR_CODE_COV }} -lt ${{ env.MIN_CODE_COV }} ]]; then
echo 'coverage dropped below ${{ env.MIN_CODE_COV }}: ${{ env.CURR_CODE_COV }}%'
exit 1
fi
- name: crates/pg coverage report
run: |
make rust-coverage RUST_PKG=pg
echo "MIN_CODE_COV=$(yq .crates.pg.min_code_cov project.yaml)" >> $GITHUB_ENV
echo "CURR_CODE_COV=$(make rust-coverage-percent RUST_PKG=pg)" >> $GITHUB_ENV
- name: fail crates/pg coverage under ${{ env.MIN_CODE_COV }}%
run: |
if [[ $(make rust-coverage-percent RUST_PKG=pg) -lt ${{ env.MIN_CODE_COV }} ]]; then
echo 'coverage dropped below ${{ env.MIN_CODE_COV }}%'
if [[ ${{ env.CURR_CODE_COV }} -lt ${{ env.MIN_CODE_COV }} ]]; then
echo 'coverage dropped below ${{ env.MIN_CODE_COV }}: ${{ env.CURR_CODE_COV }}%'
exit 1
fi
4 changes: 0 additions & 4 deletions crates/pg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,6 @@ mod tests {
}
}

// struct TestDB;

// impl DatabaseConnectionTrait for TestDB {}

#[test]
#[serial]
fn from_account_profile_row_called_with_args() {
Expand Down

0 comments on commit 3512762

Please sign in to comment.