diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24cf045d3..f3bdf9cfc 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.