ximion / appstream

Tools and libraries to work with AppStream metadata
http://www.freedesktop.org/wiki/Distributions/AppStream/
GNU Lesser General Public License v2.1
210 stars 115 forks source link

Suggestions for using GitHub Actions for validating appstream metainfo #608

Open cbm755 opened 7 months ago

cbm755 commented 7 months ago
  1. I can install Flatpak on Ubuntu 22.04, get Flathub, then install org.freedesktop.appstream.cli. Here's an example of this

https://github.com/gnu-octave/octave-doctest/pull/287/files

But that feels a bit "heavy".


  1. Wait for Ubuntu 24.04 which presumably will have more up-to-date Appstream package.

  1. I don't know much about GitHub Actions: perhaps this project could publish something so that we could:
    actions/appstream-cli-validate@v1

  1. something else?

On GitLab I can use any containers I want, so I simply choose one with appstream >= 1, such as:

cbm755 commented 7 months ago
  1. Likely, this can be used too:

docker run --rm -it ghcr.io/flathub/flatpak-builder-lint:latest

(from https://github.com/flathub-infra/flatpak-builder-lint)

bbhtt commented 7 months ago

The linter is specific to Flathub and contains overrides and patches to appstream, specific to Flathub.

If you want it for testing Flathub deployments, use it. If the goal is to mirror upstream behaviour then it's probably not the thing you want.

ximion commented 7 months ago

Of course we could provide a Docker container, but TBH, using the Flatpak would be way less "heavy"... In the past there was a PPA with up-to-date AppStream, that would - for the GitHub CI - probably be the easiest option.

JakobDev commented 7 months ago

I use the Archlinux Image, as it always have the latest version of AppStream