summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2024-10-31 08:57:20 -0400
committerGitHub <noreply@github.com>2024-10-31 12:57:20 +0000
commitb88ec6016eacd390c7e68344c50049764515eba9 (patch)
tree5950de9ed99faa236683b09c5fd6532176b8f440 /.github
parent066e9349f96b7bc56536d48aaae29d98f0ee76fa (diff)
Upload artifacts on CI failure (#5021)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4de2fe5a..9ddb309b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,6 +34,25 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --no-run
- run: cargo test --workspace --no-fail-fast
+ - name: Upload rendered test output
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: tests-rendered-${{ matrix.os }}
+ path: tests/store/render/**
+ retention-days: 3
+ - name: Update test artifacts
+ if: failure()
+ run: |
+ cargo test --workspace --test tests -- --update
+ echo 'updated_artifacts=1' >> "$GITHUB_ENV"
+ - name: Upload updated reference output (for use if the test changes are desired)
+ if: failure() && env.updated_artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: tests-updated-${{ matrix.os }}
+ path: tests/ref/**
+ retention-days: 3
checks:
name: Check clippy, formatting, and documentation