From be4eabc71bbbf5ab89d8cb74f0b894d374793850 Mon Sep 17 00:00:00 2001 From: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:13:42 +0200 Subject: [PATCH] [ci] check for untracked naga snapshots (#5792) --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24cf045d3e..f3bdf9cfca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -543,7 +543,8 @@ jobs: cargo xtask test --llvm-cov - name: check naga snapshots - run: git diff --exit-code -- naga/tests/out + # git diff doesn't check untracked files, we need to stage those then compare with HEAD. + run: git add . && git diff --exit-code HEAD naga/tests/out - uses: actions/upload-artifact@v4 if: always() # We want artifacts even if the tests fail.