From 392dbc21ab6bae98c5bab8db17b7fa7495b1e6a5 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sun, 6 Mar 2022 14:04:50 +0100 Subject: [PATCH] [CI] Run `Run examples tests` on every supported Lua Version (#3575) * ci(main) always run `Run examples tests` * fix(font1) print with string.format --- .github/workflows/main.yml | 1 - tests/examples/wibox/widget/textbox/font1.lua | 11 ++++++++++- tests/examples/wibox/widget/textbox/font1.output.txt | 8 ++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39ad3cdd4..ea8a891b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -305,7 +305,6 @@ jobs: run: cd "${{ github.workspace }}/build" && make check-unit - name: Run examples tests - if: matrix.coverage run: cd "${{ github.workspace }}/build" && make check-examples - name: Run requires tests diff --git a/tests/examples/wibox/widget/textbox/font1.lua b/tests/examples/wibox/widget/textbox/font1.lua index 2d2c9598b..a2125f096 100644 --- a/tests/examples/wibox/widget/textbox/font1.lua +++ b/tests/examples/wibox/widget/textbox/font1.lua @@ -28,7 +28,16 @@ local ret = wibox.layout.fixed.vertical() --DOC_NEWLINE -- Use the low level Pango API to validate the font was parsed properly. local desc = pango.FontDescription.from_string(w.font) - print(w.font, desc:get_size(), desc:get_family(), desc:get_variant(), desc:get_style()) + print( + string.format( + "%s %d %s %s %s", + w.font, + desc:get_size(), + desc:get_family(), + desc:get_variant(), + desc:get_style() + ) + ) --DOC_HIDE_START diff --git a/tests/examples/wibox/widget/textbox/font1.output.txt b/tests/examples/wibox/widget/textbox/font1.output.txt index 0a9640091..f4f5836b8 100644 --- a/tests/examples/wibox/widget/textbox/font1.output.txt +++ b/tests/examples/wibox/widget/textbox/font1.output.txt @@ -1,4 +1,4 @@ -sans 0.0 sans NORMAL NORMAL -Roboto, Bold 0.0 Roboto NORMAL NORMAL -DejaVu Sans, Oblique 0.0 DejaVu Sans NORMAL OBLIQUE -Noto Mono, Regular 0.0 Noto Mono NORMAL NORMAL +sans 0 sans NORMAL NORMAL +Roboto, Bold 0 Roboto NORMAL NORMAL +DejaVu Sans, Oblique 0 DejaVu Sans NORMAL OBLIQUE +Noto Mono, Regular 0 Noto Mono NORMAL NORMAL