Menu
BifrOSt-Apps
publicLatest change ecedc15862b71de37e606d7eed1f5e52ca419d1b - Use current checkout action runtime by Ólafur Búi Ólafsson
name: Validate app template
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- name: Install validation tools
run: |
sudo apt-get update
sudo apt-get install --yes appstream desktop-file-utils flatpak flatpak-builder
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Test generator
run: python3 -m unittest discover -s tests -v
- name: Generate validation application
run: |
python3 scripts/new-app.py \
org.bifrost.TemplateCheck \
"BifrOSt Template Check" \
--name-is "BifrOSt-sniðmátspróf" \
--summary "Validate the BifrOSt app template" \
--summary-is "Sannreynir BifrOSt-forritasniðmátið" \
--description "Build and validate the generated application identity, metadata, translations, and Flatpak contract." \
--description-is "Byggir og sannreynir auðkenni, lýsigögn, þýðingar og Flatpak-samning útbúna forritsins." \
--output .ci-app
desktop-file-validate .ci-app/data/org.bifrost.TemplateCheck.desktop
appstreamcli validate --no-net .ci-app/data/org.bifrost.TemplateCheck.metainfo.xml
- name: Build candidate bundle
run: |
flatpak-builder --user --install-deps-from=flathub --force-clean \
--default-branch=stable --repo=.ci-repo .ci-build .ci-app/org.bifrost.TemplateCheck.yml
flatpak build-bundle .ci-repo org.bifrost.TemplateCheck.flatpak \
org.bifrost.TemplateCheck stable