From 14fabe1a2c9ee73fb271db9e27b71f5051771603 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Tue, 5 Apr 2022 14:15:22 +0200 Subject: [PATCH] [ci][desktop] add appstream check Signed-off-by: Francesco Gazzetta --- .github/workflows/linux-check.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/linux-check.yaml b/.github/workflows/linux-check.yaml index 7ab6fb96fd..4bbd5dcc01 100644 --- a/.github/workflows/linux-check.yaml +++ b/.github/workflows/linux-check.yaml @@ -148,3 +148,26 @@ jobs: -e routing_consistency_tests \ -e opening_hours_supported_features_tests \ -e storage_integration_tests \ + + linux-appstream: + name: Linux validate appstream data + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install appstream validator + 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 + + - name: Validate appstream data + shell: bash + run: flatpak run org.freedesktop.appstream-glib validate --nonet qt/res/app.organicmaps.desktop.metainfo.xml