fix: use json helper as return to manage memory #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request, push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Zig env | |
uses: goto-bus-stop/setup-zig@v2 | |
- name: Check Zig version | |
run: zig version | |
- name: Install XTP CLI | |
run: curl https://static.dylibso.com/cli/install.sh | sudo sh | |
- name: Build example | |
run: zig build | |
- name: Test basic example | |
run: | | |
# this is configured by `examples/basic/xtp.toml` | |
xtp plugin test --path examples/basic | |
- name: Test json example | |
run: | | |
# this is configured by `examples/json/xtp.toml` | |
xtp plugin test --path examples/json | |