Skip to content

Commit

Permalink
Merge pull request #287 from gnu-octave/metainfo_ci
Browse files Browse the repository at this point in the history
CI: validate the metainfo
  • Loading branch information
cbm755 authored Mar 2, 2024
2 parents fc77faf + 72e7cf1 commit e9b364e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@ jobs:
run: |
octave --eval "pkg uninstall doctest; pkg list"
appstream-validate:
# maybe a later Ubuntu will have appstream >= 1, for now we pull from flatpak
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Flatpak and add Flathub
run: |
whoami
uname -a
sudo apt-get update
sudo apt-get install -y flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y org.freedesktop.appstream.cli
- name: List appstream.cli version
run: |
flatpak run org.freedesktop.appstream.cli --version
- name: Validate
run: |
flatpak run org.freedesktop.appstream.cli validate --strict --pedantic --explain io.github.gnu_octave.doctest.metainfo.xml
# Built-in Self Tests for various supported Octave
# TODO: fail-fast -> true later
Expand Down

0 comments on commit e9b364e

Please sign in to comment.