From b0df80ef420517b7493cae0e4851d74f3fba2ff2 Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Mon, 13 Apr 2026 17:09:36 -0600 Subject: [PATCH 1/2] ci(build.yaml): add integration test step Signed-off-by: Vaughn Dice --- .github/workflows/build.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e78243d..2edacf6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -105,6 +105,30 @@ jobs: *.tar.gz *.json + test: + name: Run tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Install rust target for example app + run: rustup target add wasm32-wasip2 + + - name: Install Spin + uses: fermyon/actions/spin/setup@v1 + with: + # TODO: Switch to Spin 4.0 when it's available + version: "canary" + plugins: pluginify + + - name: Install mqttx-cli + run: | + curl -LO https://www.emqx.com/en/downloads/MQTTX/v1.13.0/mqttx-cli-linux-x64 + sudo install ./mqttx-cli-linux-x64 /usr/local/bin/mqttx + + - name: Run integration test + run: make test + package: name: Package plugin if: github.event_name == 'push' From 425a197f1e10915428e3c0c1efacc7f70ddc3860 Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Tue, 14 Apr 2026 11:32:08 -0600 Subject: [PATCH 2/2] ref(integration_test.sh): wait for spin app to build before backgrounding Signed-off-by: Vaughn Dice --- tests/integration_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration_test.sh b/tests/integration_test.sh index a84f59d..533a7a3 100755 --- a/tests/integration_test.sh +++ b/tests/integration_test.sh @@ -132,7 +132,8 @@ start_spin_app() { SPIN_LOGS_STDOUT="$SPIN_LOG_DIR/mqtt-c01_stdout.txt" # Build and start the example app in background, capturing output - spin build --up --from examples/mqtt-app/spin.toml --log-dir "$SPIN_LOG_DIR" & + spin build --from examples/mqtt-app/spin.toml + spin up --from examples/mqtt-app/spin.toml --log-dir "$SPIN_LOG_DIR" & SPIN_PID=$! log "Waiting for Spin application to start..."