Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions for using GitHub Actions for validating appstream metainfo #608

Open
cbm755 opened this issue Feb 25, 2024 · 4 comments
Open

Comments

@cbm755
Copy link

cbm755 commented Feb 25, 2024

  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
Copy link
Author

cbm755 commented Feb 25, 2024

  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
Copy link

bbhtt commented Feb 25, 2024

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
Copy link
Owner

ximion commented Feb 25, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants