ci(ref_imgs): make the CI fail if there not all ref. images are added (#7086)
37
.github/workflows/ccpp.yml
vendored
@ -91,9 +91,34 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
tests/ref_imgs*/**/*_err.png
|
tests/ref_imgs*/**/*_err.png
|
||||||
test_screenshot_error.h
|
test_screenshot_error.h
|
||||||
# - name: Upload coverage to Codecov
|
- id: check_untracked_ref_imgs
|
||||||
# uses: codecov/codecov-action@v4
|
name: Check for new files and upload them as artifacts if found
|
||||||
# if: github.event_name == 'push' && github.repository == 'lvgl/lvgl'
|
run: |
|
||||||
# with:
|
NEW_REF_IMGS=$(git status --porcelain -- tests/ref_imgs* | grep '^??' | awk '{print $2}')
|
||||||
# fail_ci_if_error: true
|
|
||||||
# verbose: true
|
if [ -n "$NEW_REF_IMGS" ]; then
|
||||||
|
echo "New files were added during the build process."
|
||||||
|
echo "Uploading untracked ref. images as artifacts..."
|
||||||
|
for file in $NEW_REF_IMGS; do
|
||||||
|
echo "Found new file: $file"
|
||||||
|
done
|
||||||
|
zip -r untracked_ref_imgs.zip $NEW_REF_IMGS
|
||||||
|
echo "::set-output name=new_ref_imgs_found::true"
|
||||||
|
else
|
||||||
|
echo "No new files were found."
|
||||||
|
echo "::set-output name=new_ref_imgs_found::false"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Upload untracked reference images
|
||||||
|
if: steps.check_untracked_ref_imgs.outputs.new_ref_imgs_found == 'true'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Untracked Reference Images
|
||||||
|
path: untracked_ref_imgs.zip
|
||||||
|
|
||||||
|
- name: Fail the build if new files were found
|
||||||
|
if: steps.check_untracked_ref_imgs.outputs.new_ref_imgs_found == 'true'
|
||||||
|
run: |
|
||||||
|
echo "Failing the build due to newly generated reference images."
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
BIN
tests/ref_imgs/draw/vector_draw_lines.lp32.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
tests/ref_imgs/draw/vector_draw_shapes.lp32.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_0.lp32.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_1.lp32.png
Normal file
After Width: | Height: | Size: 96 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_10.lp32.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_2.lp32.png
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_3.lp32.png
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_4.lp32.png
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_5.lp32.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_6.lp32.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_7.lp32.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_8.lp32.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
tests/ref_imgs/libs/font_stress/snapshot_9.lp32.png
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_1.lp32.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_2.lp32.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_3.lp32.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_4.lp32.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_5.lp32.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_6.lp32.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_7.lp32.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_com_8.lp32.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_group_1.lp32.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_group_2.lp32.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_group_3.lp32.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_group_4.lp32.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_0.lp32.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_1.lp32.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_10.lp32.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_11.lp32.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_12.lp32.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_2.lp32.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_3.lp32.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_4.lp32.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_5.lp32.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_6.lp32.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_7.lp32.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_8.lp32.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_image_9.lp32.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_1.lp32.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_10.lp32.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_11.lp32.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_2.lp32.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_3.lp32.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_4.lp32.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_5.lp32.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_6.lp32.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_7.lp32.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_8.lp32.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_shapes_9.lp32.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_text_1.lp32.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_text_2.lp32.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_viewport_1.lp32.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_viewport_2.lp32.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
tests/ref_imgs_vg_lite/draw/svg_draw_svg_viewport_3.lp32.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
tests/ref_imgs_vg_lite/draw/vector_draw_lines.lp32.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
tests/ref_imgs_vg_lite/draw/vector_draw_shapes.lp32.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_0.lp32.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_1.lp32.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_10.lp32.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_2.lp32.png
Normal file
After Width: | Height: | Size: 134 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_3.lp32.png
Normal file
After Width: | Height: | Size: 92 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_4.lp32.png
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_5.lp32.png
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_6.lp32.png
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_7.lp32.png
Normal file
After Width: | Height: | Size: 119 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_8.lp32.png
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
tests/ref_imgs_vg_lite/libs/font_stress/snapshot_9.lp32.png
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
tests/ref_imgs_vg_lite/libs/freetype_1.lp32.png
Normal file
After Width: | Height: | Size: 60 KiB |