From ebe21bfeed4b977d7d509a2a801a41395124f538 Mon Sep 17 00:00:00 2001 From: VaibhavPandey0509 Date: Sun, 15 Mar 2026 15:10:11 +0530 Subject: [PATCH 1/2] Add Docker-based integration tests for install scripts --- .github/workflows/integration.yml | 32 +++++++++++++++++++++++++++++++ tests/integration/ubuntu.test.sh | 15 +++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/integration.yml create mode 100644 tests/integration/ubuntu.test.sh diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..61e8e9b --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,32 @@ +name: Integration Tests + +on: + push: + pull_request: + +jobs: + integration: + runs-on: ubuntu-latest + + strategy: + matrix: + container: + - ubuntu:22.04 + - kalilinux/kali-rolling + + container: + image: ${{ matrix.container }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies + run: | + apt-get update || true + apt-get install -y bash git || true + + - name: Run integration test + run: | + chmod +x tests/integration/ubuntu.test.sh + bash tests/integration/ubuntu.test.sh \ No newline at end of file diff --git a/tests/integration/ubuntu.test.sh b/tests/integration/ubuntu.test.sh new file mode 100644 index 0000000..e31c8cc --- /dev/null +++ b/tests/integration/ubuntu.test.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e + +echo "Running Ubuntu integration test" + + +bash scripts/linux/ubuntu.sh git + + +if git --version > /dev/null 2>&1; then + echo "Git installed successfully" +else + echo "Git installation failed" + exit 1 +fi \ No newline at end of file From adf3019cb96217abd3e17f0e06060a8e326a04fe Mon Sep 17 00:00:00 2001 From: VaibhavPandey0509 Date: Sun, 15 Mar 2026 15:25:41 +0530 Subject: [PATCH 2/2] Install sudo in CI container for integration tests --- .github/workflows/integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 61e8e9b..5abc441 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -23,8 +23,8 @@ jobs: - name: Install dependencies run: | - apt-get update || true - apt-get install -y bash git || true + apt-get update + apt-get install -y sudo bash git - name: Run integration test run: |