[ci] check for untracked naga snapshots (#5792)

This commit is contained in:
Teodor Tanasoaia 2024-06-11 21:13:42 +02:00 committed by GitHub
parent 00f5c57b86
commit be4eabc71b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.