@@ -52,11 +52,11 @@ jobs:
5252 echo 'deb [trusted=yes] https://ftp.debian.org/debian/ testing main' | sudo tee /etc/apt/sources.list.d/testing.list
5353 sudo apt update
5454 sudo apt install -y crun/testing podman/testing skopeo/testing
55+ - name : Installdeps
56+ run : sudo apt update && sudo apt install just
5557 - uses : actions/checkout@v4
56- - name : Build container (fedora)
57- run : sudo podman build --build-arg=base=quay.io/fedora/fedora-bootc:41 -t localhost/bootc -f hack/Containerfile .
58- - name : Container integration
59- run : sudo podman run --rm localhost/bootc bootc-integration-tests container
58+ - name : Build and run container integration tests
59+ run : sudo just run-container-integration
6060 cargo-deny :
6161 runs-on : ubuntu-latest
6262 steps :
@@ -84,15 +84,16 @@ jobs:
8484 - name : Enable fsverity for /
8585 run : sudo tune2fs -O verity $(findmnt -vno SOURCE /)
8686 - name : Install utils
87- run : sudo apt -y install fsverity
87+ run : sudo apt -y install fsverity just
8888 - name : Integration tests
8989 run : |
9090 set -xeu
9191 # Build images to test; TODO investigate doing single container builds
9292 # via GHA and pushing to a temporary registry to share among workflows?
93- sudo podman build -t localhost/bootc -f hack/Containerfile .
93+ sudo just build-integration-test-image
9494 sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
9595
96+ # TODO move into a container, and then have this tool run other containers
9697 export CARGO_INCREMENTAL=0 # because we aren't caching the test runner bits
9798 cargo build --release -p tests-integration
9899
@@ -104,9 +105,9 @@ jobs:
104105 sudo podman run --privileged --pid=host -v /:/run/host -v $(pwd):/src:ro -v /var/tmp:/var/tmp \
105106 -v /run/dbus:/run/dbus -v /run/systemd:/run/systemd localhost/bootc /src/ostree-ext/ci/priv-integration.sh
106107 # Nondestructive but privileged tests
107- sudo bootc-integration-tests host-privileged localhost/bootc
108+ sudo bootc-integration-tests host-privileged localhost/bootc-integration
108109 # Install tests
109- sudo bootc-integration-tests install-alongside localhost/bootc
110+ sudo bootc-integration-tests install-alongside localhost/bootc-integration
110111
111112 # system-reinstall-bootc tests
112113 cargo build --release -p system-reinstall-bootc
@@ -116,7 +117,7 @@ jobs:
116117
117118 sudo install -m 0755 target/release/system-reinstall-bootc /usr/bin/system-reinstall-bootc
118119 # These tests may mutate the system live so we can't run in parallel
119- sudo bootc-integration-tests system-reinstall localhost/bootc --test-threads=1
120+ sudo bootc-integration-tests system-reinstall localhost/bootc-integration --test-threads=1
120121
121122 # And the fsverity case
122123 sudo podman run --privileged --pid=host localhost/bootc-fsverity bootc install to-existing-root --stateroot=other \
0 commit comments