From d84367248265a5f78ab6901b5b1ff23cb1d322ec Mon Sep 17 00:00:00 2001 From: reluctantfuturist Date: Thu, 17 Apr 2025 15:45:14 -0700 Subject: [PATCH] ci(installer): end-to-end smoke test and scheduled health check --- .github/workflows/install-script-ci.yml | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/install-script-ci.yml diff --git a/.github/workflows/install-script-ci.yml b/.github/workflows/install-script-ci.yml new file mode 100644 index 000000000..6b0cf7e1f --- /dev/null +++ b/.github/workflows/install-script-ci.yml @@ -0,0 +1,37 @@ +name: Installer CI + +on: + pull_request: + paths: + - 'install.sh' + push: + paths: + - 'install.sh' + schedule: + - cron: '0 2 * * *' # every day at 02:00 UTC + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Bash syntax check + run: bash -n install.sh + + smoke-test: + needs: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Make installer executable + run: chmod +x install.sh + - name: Run installer end-to-end + run: ./install.sh + - name: Wait for health endpoint + run: | + timeout 120 bash -c \ + 'until curl -fsS http://localhost:8321/v1/health; do sleep 1; done' + - name: Cleanup + run: | + docker rm -f ollama-server llama-stack || true + docker network rm llama-stack-net || true