Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down
Loading