[CI] Run `Run examples tests` on every supported Lua Version (#3575)

* ci(main) always run `Run examples tests`

* fix(font1) print with string.format
This commit is contained in:
Aire-One 2022-03-06 14:04:50 +01:00 committed by GitHub
parent 22dedf77dc
commit 392dbc21ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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