From d3736a5b9444293fa38adf8e71b455c75ed3e638 Mon Sep 17 00:00:00 2001 From: Onur Solmaz Date: Sat, 18 Apr 2026 19:11:26 +0200 Subject: [PATCH] test(ci): cover spritz local smoke --- .github/workflows/e2e-unit-tests.yml | 7 ++++ .github/workflows/local-smoke-tests.yml | 47 +++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/local-smoke-tests.yml diff --git a/.github/workflows/e2e-unit-tests.yml b/.github/workflows/e2e-unit-tests.yml index 8de3569f..83d9d51e 100644 --- a/.github/workflows/e2e-unit-tests.yml +++ b/.github/workflows/e2e-unit-tests.yml @@ -26,3 +26,10 @@ jobs: - name: Run e2e unit tests run: node --test e2e/*.test.mjs + + - name: Check ACP smoke scripts + run: | + node --check e2e/acp-smoke-lib.mjs + node --check e2e/acp-client.mjs + node --check e2e/instance-waiter.mjs + node --check e2e/acp-smoke.mjs diff --git a/.github/workflows/local-smoke-tests.yml b/.github/workflows/local-smoke-tests.yml new file mode 100644 index 00000000..da5880b3 --- /dev/null +++ b/.github/workflows/local-smoke-tests.yml @@ -0,0 +1,47 @@ +name: local-smoke-tests + +on: + pull_request: + paths: + - "api/**" + - "operator/**" + - "helm/**" + - "e2e/local-smoke.sh" + - ".github/workflows/local-smoke-tests.yml" + push: + branches: + - main + paths: + - "api/**" + - "operator/**" + - "helm/**" + - "e2e/local-smoke.sh" + - ".github/workflows/local-smoke-tests.yml" + +jobs: + smoke: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: api/go.mod + cache-dependency-path: | + api/go.sum + operator/go.sum + + - name: Setup kubectl + uses: azure/setup-kubectl@v4 + with: + version: v1.30.0 + + - name: Install jq + run: sudo apt-get update && sudo apt-get install -y jq + + - name: Run local smoke + env: + SPRITZ_E2E_API_WAIT_SECONDS: "120" + run: ./e2e/local-smoke.sh