Skip to content

Commit e0d8f39

Browse files
committed
Add AppStream validation to GitHub CI
AppStream metadata becoming invalid due to stricter validation has prevented trivial Flathub version updates a few times. Let's try to be proactive by validating the AppStream metadata automatically for each commit.
1 parent b8099d2 commit e0d8f39

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/appstream.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Validate AppStream
3+
4+
on: [push, pull_request]
5+
6+
permissions: read-all
7+
8+
jobs:
9+
validate:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Install appstreamcli
16+
run: sudo apt install appstream
17+
18+
- name: Validate AppStream metadata
19+
run: appstreamcli validate data/com.github.Matoking.protontricks.metainfo.xml

0 commit comments

Comments
 (0)