Upload test images as artifacts

This commit is contained in:
Shylie
2024-05-28 13:23:49 -04:00
parent be6a31043a
commit 526924d02a
2 changed files with 14 additions and 4 deletions

View File

@@ -23,9 +23,19 @@ jobs:
run: cmake -S curr -B curr/build -DGLERMINAL_TEST=ON && cmake --build curr/build
- name: Build previous
run: cmake -S prev -B prev/build -DGLERMINAL_TEST=ON && cmake --build prev/build
- name: Generate PNG file for curr
- name: Generate PNG file for current
run: cd curr/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a ./test-basic
- name: Generate PNG file for prev
- name: Generate PNG file for previous
run: cd prev/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a ./test-basic
- name: Upload current PNG
uses: actions/upload-artifact@v4
with:
name: current-basic
path: curr/build/tests/image.png
- name: Upload previous PNG
uses: actions/upload-artifact@v4
with:
name: previous-basic
path: prev/build/tests/image.png
- name: Compare PNG files
run: diff curr/build/tests/image.png prev/build/tests/image.png