Add some flatpak tests
Some checks failed
CI / test (push) Failing after 3m5s
Lint / test (push) Has been cancelled

This commit is contained in:
Miguel Jacq 2026-06-14 18:37:48 +10:00
parent 8f425b595b
commit 9dfbd411de
Signed by: mig5
GPG key ID: 03906B4110AAD3B8

View file

@ -44,12 +44,19 @@ poetry run \
--format json | jq
DEBIAN_FRONTEND=noninteractive apt-get remove -y --purge cowsay
# Common simple packages mode (is tested later)
# Ensure some flatpaks are installed
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.onionshare.OnionShare
poetry run \
enroll manifest \
--harvest "${BUNDLE_DIR}2" \
--out "${ANSIBLE_DIR}2" \
--merge-simple-packages
--out "${ANSIBLE_DIR}2"
# Test the presence of OnionShare
builtin cd "${ANSIBLE_DIR}2"
grep -r org.onionshare.OnionShare "${ANSIBLE_DIR}2/roles"
ansible-playbook playbook.yml -i "localhost," -c local --check --diff --tags role_flatpak
# Ansible test
builtin cd "${ANSIBLE_DIR}"
@ -58,9 +65,3 @@ ansible-lint "${ANSIBLE_DIR}"
# Run
ansible-playbook playbook.yml -i "localhost," -c local --check --diff
# Test the --merge-simple-packages mode
builtin cd "${ANSIBLE_DIR}2"
ls "${ANSIBLE_DIR}2/roles"
ansible-playbook playbook.yml -i "localhost," -c local --check --diff