From 5c96993da4513f6a7d3ff3ac3d22b4033e780f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Thu, 17 Apr 2025 19:29:40 +0200 Subject: [PATCH] gha: Add workflow to test rootless install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bace13..8c50614 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,3 +23,15 @@ jobs: run: make shellcheck - name: Check distribution run: TEST_IMAGE=${{ matrix.os }} VERSION=${{ matrix.version }} make test + + # This is a separate workflow step, because we need to check it outside of container (due to lsmod, iptables checks) + test-install-rootless: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + - name: Install rootless + run: | + sudo sh -c 'echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns' + FORCE_ROOTLESS_INSTALL=1 ./rootless-install.sh +