Skip to content

Commit

Permalink
Add some steps to verify the appdata metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Abestanis committed Apr 6, 2024
1 parent 7d99560 commit b5a1606
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update -qq;
sudo apt install -qq libx11-dev libqt5svg5-dev libx11-xcb-dev desktop-file-utils
sudo apt install -qq libx11-dev libqt5svg5-dev libx11-xcb-dev desktop-file-utils appstream-util
elif [ "$RUNNER_OS" == "Windows" ]; then
if [ "$ARCH" == "x86" ]; then
echo "CMAKE_PLATFORM_ARG=-A Win32" >> $GITHUB_ENV
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Tests
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release --target tests && cmake --build . --config Release --target run_tests
- name: Validate desktop file
- name: Validate desktop file and app metadata
working-directory: ${{ github.workspace }}
if: runner.os == 'Linux'
shell: bash
Expand All @@ -88,6 +88,7 @@ jobs:
echo "$output";
exit 1;
fi
appstream-util validate src/res/com.ulduzsoft.Birdtray.appdata.xml
- name: Check if this is a deployment build
id: check-deploy
shell: bash
Expand Down Expand Up @@ -141,6 +142,10 @@ jobs:
echo "Tag does not match: ${{ github.event.ref }}"
exit 1
fi
- name: Verify that the app metadata contains the release
shell: bash
run: |
grep "version=\"${{ steps.deploy_check.outputs.version }}\"" src/res/com.ulduzsoft.Birdtray.appdata.xml -q || (echo "Version not found in src/res/com.ulduzsoft.Birdtray.appdata.xml"; exit 1)
- name: Download installer (x86)
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit b5a1606

Please sign in to comment.