[github/workflows]: Use the linter of flathub

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
Ferenc Géczi 2024-04-01 00:00:04 +00:00 committed by Alexander Borsuk
parent 5c18ca362d
commit c214e44ecf

View file

@ -14,16 +14,19 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install appstream validator
- name: Install appstream validator and flatpak Builder
shell: bash
run: |
sudo apt update -y
sudo apt install -y \
flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# We get it from flathub to ensure we have a recent version
sudo flatpak install -y org.freedesktop.appstream-glib
sudo flatpak install -y org.freedesktop.appstream-glib org.flatpak.Builder
- name: Validate appstream data
shell: bash
run: flatpak run org.freedesktop.appstream-glib validate --nonet packaging/app.organicmaps.desktop.metainfo.xml
- name: Lint appstream data with flatpak Builder
shell: bash
run: flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream packaging/app.organicmaps.desktop.metainfo.xml