Skip to content

Commit d663a31

Browse files
committed
ci(cubesql): Check unreferenced insta snapshots in CI
1 parent 9530cb0 commit d663a31

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/rust-cubesql.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ jobs:
8989
with:
9090
crate: cargo-llvm-cov
9191
version: "0.6.10"
92+
- name: Install [email protected]
93+
uses: baptiste0928/cargo-install@v3
94+
with:
95+
crate: cargo-insta
96+
version: "1.42.0"
9297
- name: Unit tests (Rewrite Engine)
9398
env:
9499
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
@@ -100,6 +105,17 @@ jobs:
100105
run: |
101106
cd rust/cubesql
102107
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
108+
- name: Check unreferenced insta snapshots in tests (Rewrite Engine)
109+
env:
110+
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
111+
CUBESQL_TESTING_CUBE_URL: ${{ secrets.CUBESQL_TESTING_CUBE_URL }}
112+
CUBESQL_SQL_PUSH_DOWN: true
113+
CUBESQL_TOP_DOWN_EXTRACTOR: ${{ matrix.top-down-extractor }}
114+
CUBESQL_REWRITE_CACHE: true
115+
CUBESQL_REWRITE_TIMEOUT: 60
116+
run: |
117+
cd rust/cubesql
118+
cargo insta test --all-features --workspace --unreferenced reject
103119
- name: Upload code coverage
104120
uses: codecov/codecov-action@v4
105121
with:

0 commit comments

Comments
 (0)