From f97cfe77f9b9eb4a1649013db0931478bdf0e37f Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Sun, 10 Nov 2024 14:13:09 -0600 Subject: [PATCH] Add CI to validate the desktop file and appstream metainfo --- .../validate-appstream-metainfo.yaml | 21 +++++++++++++++++++ .github/workflows/validate-desktop-file.yaml | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/validate-appstream-metainfo.yaml create mode 100644 .github/workflows/validate-desktop-file.yaml diff --git a/.github/workflows/validate-appstream-metainfo.yaml b/.github/workflows/validate-appstream-metainfo.yaml new file mode 100644 index 00000000..b83a4d44 --- /dev/null +++ b/.github/workflows/validate-appstream-metainfo.yaml @@ -0,0 +1,21 @@ +name: Validate MetaInfo +"on": + pull_request: + branches: ["master"] + paths: + - .github/workflows/validate-appstream-metainfo.yml + - Source/LoadByOS/LinuxConfigApp/com.getlibation.Libation.metainfo.xml + push: + branches: ["master"] + paths: + - .github/workflows/validate-appstream-metainfo.yml + - Source/LoadByOS/LinuxConfigApp/com.getlibation.Libation.metainfo.xml + +jobs: + validate-appstream-metainfo: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: sudo apt --yes install appstream-util + - name: Check the MetaInfo file + run: appstream-util validate Source/LoadByOS/LinuxConfigApp/com.getlibation.Libation.metainfo.xml diff --git a/.github/workflows/validate-desktop-file.yaml b/.github/workflows/validate-desktop-file.yaml new file mode 100644 index 00000000..fa981644 --- /dev/null +++ b/.github/workflows/validate-desktop-file.yaml @@ -0,0 +1,21 @@ +name: Check desktop file +"on": + pull_request: + branches: ["master"] + paths: + - .github/workflows/validate-desktop-file.yml + - Source/LoadByOS/LinuxConfigApp/Libation.desktop + push: + branches: ["master"] + paths: + - .github/workflows/validate-desktop-file.yml + - Source/LoadByOS/LinuxConfigApp/Libation.desktop + +jobs: + validate-desktop-file: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: sudo apt --yes install desktop-file-utils + - name: Check the desktop file + run: desktop-file-validate Source/LoadByOS/LinuxConfigApp/Libation.desktop