From a80d817a7cf5f3967d19c9a1ca030e5208012aab Mon Sep 17 00:00:00 2001 From: Michael McCracken Date: Tue, 15 Oct 2024 17:45:41 -0700 Subject: [PATCH] move github test to use bats the existing test is now covered there, and we build our own test image so we can avoid the zothub dep and skopeo dep Signed-off-by: Michael McCracken --- .github/workflows/build.yaml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e380840..7b18cfc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,12 +51,6 @@ jobs: echo "writing /etc/lxc/lxc-usernet" echo "$u veth lxcbr0 100" | sudo tee -a /etc/lxc/lxc-usernet - - name: install skopeo - run: | - mkdir ~/bin - wget -O ~/bin/skopeo --progress=dot:mega https://github.com/project-machine/tools/releases/download/v0.0.1/skopeo - chmod 755 ~/bin/skopeo - sudo cp -f ~/bin/skopeo /usr/bin/skopeo - name: lint run: | make gofmt @@ -71,15 +65,7 @@ jobs: cp ./bin/atomfs atomfs-${{ matrix.os }} - name: test run: | - export PATH=~/bin:$PATH - skopeo copy docker://zothub.io/machine/bootkit/bootkit:v0.0.16.230901-squashfs oci:oci:bootkit-squashfs - lxc-usernsexec -s << EOF - atomfs mount --persist=upper oci:bootkit-squashfs dest - [ -d dest/bootkit ] - touch dest/zz - atomfs umount dest - [ -f upper/zz ] - EOF + make batstest - name: Upload code coverage uses: codecov/codecov-action@v4 with: