Skip to content

Commit 72fe9c0

Browse files
mcheshkovKSDaemon
authored andcommitted
ci(cubesql): Check unreferenced insta snapshots in CI
1 parent 76d6d50 commit 72fe9c0

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
@@ -85,6 +85,11 @@ jobs:
8585
with:
8686
crate: cargo-llvm-cov
8787
version: "0.6.10"
88+
- name: Install [email protected]
89+
uses: baptiste0928/cargo-install@v3
90+
with:
91+
crate: cargo-insta
92+
version: "1.42.0"
8893
- name: Unit tests (Rewrite Engine)
8994
env:
9095
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
@@ -95,6 +100,17 @@ jobs:
95100
run: |
96101
cd rust/cubesql
97102
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
103+
- name: Check unreferenced insta snapshots in tests (Rewrite Engine)
104+
env:
105+
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
106+
CUBESQL_TESTING_CUBE_URL: ${{ secrets.CUBESQL_TESTING_CUBE_URL }}
107+
CUBESQL_SQL_PUSH_DOWN: true
108+
CUBESQL_TOP_DOWN_EXTRACTOR: ${{ matrix.top-down-extractor }}
109+
CUBESQL_REWRITE_CACHE: true
110+
CUBESQL_REWRITE_TIMEOUT: 60
111+
run: |
112+
cd rust/cubesql
113+
cargo insta test --all-features --workspace --unreferenced reject
98114
- name: Upload code coverage
99115
uses: codecov/codecov-action@v5
100116
with:

0 commit comments

Comments
 (0)