test: add minimal test for container based building of images

This commit adds a smoke test that builds the ibcli container
and runs a fedora-41 raw-minimal build to double check that
the container based building actually works.

Thanks to Ondrej for suggesting this.
This commit is contained in:
Michael Vogt 2024-12-18 09:41:31 +01:00
parent fad02336b3
commit e7d8a39fcf
6 changed files with 62 additions and 10 deletions

View file

@ -13,6 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
uses: ./.github/workflows/testdeps.yml
steps:
- uses: actions/checkout@v4
@ -21,13 +22,6 @@ jobs:
with:
go-version: 'stable'
- name: Apt update
run: sudo apt update
# This is needed for the container resolver dependencies
- name: Install test dependencies
run: sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev podman
- name: Build
run: go build -v ./...

10
.github/workflows/testdeps.yml vendored Normal file
View file

@ -0,0 +1,10 @@
name: Install test dependencies
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Install test dependencies
run: |
sudo apt update
sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev podman