This commit is contained in:
Jeffry Samuel 2024-08-04 18:53:36 -06:00 committed by GitHub
parent d6dddd16f1
commit 4cac43520f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

30
.github/workflows/flatpak-lint.yml vendored Normal file
View File

@ -0,0 +1,30 @@
# .github/workflows/flatpak-lint.yml
name: Flatpak Lint
on:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Flatpak and Flatpak Builder
run: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder
# Add the Flathub repository
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Add the GNOME runtime repository
flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
- name: Checkout code
uses: actions/checkout@v2
- name: Lint Flatpak Manifest
run: |
flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/media/ --repo=repo builddir com.jeffser.Alpaca.json
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest com.jeffser.Alpaca.json
flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo