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:
parent
fad02336b3
commit
e7d8a39fcf
6 changed files with 62 additions and 10 deletions
8
.github/workflows/go.yml
vendored
8
.github/workflows/go.yml
vendored
|
|
@ -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
10
.github/workflows/testdeps.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue