mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Upload artifacts on CI failure (#5021)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
066e9349f9
commit
b88ec6016e
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -34,6 +34,25 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo test --workspace --no-run
|
- run: cargo test --workspace --no-run
|
||||||
- run: cargo test --workspace --no-fail-fast
|
- 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:
|
checks:
|
||||||
name: Check clippy, formatting, and documentation
|
name: Check clippy, formatting, and documentation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user