From 189de24df0281e922479b09deb8abdfae6515777 Mon Sep 17 00:00:00 2001 From: Mateus Melchiades Date: Sat, 4 Nov 2023 13:15:12 +0000 Subject: [PATCH] Mount /dev on container for lvm tests --- .github/workflows/go.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 24f4eeae..9e7b095d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,7 +10,10 @@ jobs: build: runs-on: ubuntu-latest - container: ghcr.io/vanilla-os/pico:main + container: + image: ghcr.io/vanilla-os/pico:main + volumes: + - /dev:/dev steps: - uses: actions/checkout@v4 @@ -23,7 +26,7 @@ jobs: - name: Install build dependencies run: | apt-get update - apt-get install -y gcc pkg-config libbtrfs-dev libdevmapper-dev libgpgme-dev liblvm2-dev + apt-get install -y gcc pkg-config libbtrfs-dev libdevmapper-dev libgpgme-dev lvm2 - name: Build run: go build -v ./...