-
-
Notifications
You must be signed in to change notification settings - Fork 388
37 lines (35 loc) · 1.13 KB
/
validate-xdg-metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Validate XDG metadata
on:
push:
paths:
- '.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-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 utils
run: |
sudo apt-get update
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