Skip to content

Commit

Permalink
ci(cubesql): Check unreferenced insta snapshots in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mcheshkov committed Jan 23, 2025
1 parent 4b0ecc5 commit 1848739
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust-cubesql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ jobs:
with:
crate: cargo-llvm-cov
version: "0.6.10"
- name: Install [email protected]
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-insta
version: "1.42.0"
- name: Unit tests (Rewrite Engine)
env:
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
Expand All @@ -100,6 +105,17 @@ jobs:
run: |
cd rust/cubesql
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Check unreferenced insta snapshots in tests (Rewrite Engine)
env:
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
CUBESQL_TESTING_CUBE_URL: ${{ secrets.CUBESQL_TESTING_CUBE_URL }}
CUBESQL_SQL_PUSH_DOWN: true
CUBESQL_TOP_DOWN_EXTRACTOR: ${{ matrix.top-down-extractor }}
CUBESQL_REWRITE_CACHE: true
CUBESQL_REWRITE_TIMEOUT: 60
run: |
cd rust/cubesql
cargo insta test --all-features --workspace --unreferenced reject
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 1848739

Please sign in to comment.