-
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PICARD-2746: Validate XDG desktop file in CI
- Loading branch information
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
15 changes: 10 additions & 5 deletions
15
.github/workflows/validate-appstream.yml → .github/workflows/validate-xdg-metadata.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
name: Validate AppStream | ||
name: Validate XDG metadata | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/validate-appstream.yml' | ||
- '.github/workflows/validate-xdg-metadata.yml' | ||
- 'org.musicbrainz.Picard.appdata.xml.in' | ||
- 'org.musicbrainz.Picard.desktop.in' | ||
- 'po/appstream/*.po' | ||
- 'NEWS.md' | ||
- 'setup.py' | ||
pull_request: | ||
|
||
jobs: | ||
validate-appstream: | ||
validate-xdg-metadata: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install appstream-util | ||
- name: Install utils | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install appstream-util gettext | ||
sudo apt-get install appstream-util desktop-file-utils gettext | ||
- name: Validate AppStream metadata | ||
run: | | ||
python setup.py build_appdata | ||
appstream-util validate-relax org.musicbrainz.Picard.appdata.xml | ||
# TODO: Consider using appstreamcli once ubuntu-latest provides | ||
# appstreamcli>=0.16, as this tool catches more issues. | ||
#appstreamcli validate --pedantic --explain org.musicbrainz.Picard.appdata.xml | ||
- name: Validate desktop file | ||
run: | | ||
python setup.py build_desktop_file | ||
desktop-file-validate org.musicbrainz.Picard.desktop |