From 7ca77e30785a989b84ae3a3e5c6a6b374ce0a839 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 19 Aug 2021 20:00:00 +0200 Subject: [PATCH] workflow: add basic smoke test Do a very basic check that the snap is valid after the building. Thanks to Sergio for the suggestion. --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4999d30..83e175c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,3 +32,5 @@ jobs: sudo chroot $CHROOT apt install -y livecd-rootfs snapcraft sudo cp -a Makefile snapcraft.yaml hooks live-build extra-files $CHROOT/build sudo chroot $CHROOT sh -c 'mount -t proc proc /proc; mount -t sysfs sys /sys; cd build; snapcraft' + # basic smoke testing + unsquashfs -ll core*.snap | grep /usr/lib/snapd/snapd$