diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..5abc441 --- /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 + apt-get install -y sudo bash git + + - 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