Skip to content
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
8 changes: 7 additions & 1 deletion .github/workflows/backend-pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,14 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: backend/go.sum

- name: Setup TinyGo
run: |
set -euo pipefail
curl -sL -o /tmp/tinygo.deb https://github.com/tinygo-org/tinygo/releases/download/v0.41.1/tinygo_0.41.1_amd64.deb
sudo dpkg -i /tmp/tinygo.deb

- name: Build WASM
run: GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o bdd.wasm .
run: tinygo build -target=wasip1 -buildmode=c-shared -o bdd.wasm .

test:
name: Tests
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
with:
go-version: "1.24"

- name: Setup TinyGo
run: |
set -euo pipefail
curl -sL -o /tmp/tinygo.deb https://github.com/tinygo-org/tinygo/releases/download/v0.41.1/tinygo_0.41.1_amd64.deb
sudo dpkg -i /tmp/tinygo.deb

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
Expand All @@ -32,7 +38,7 @@ jobs:
run: |
set -euo pipefail
mkdir -p ../release/backend
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o ../release/backend/bdd.wasm .
tinygo build -target=wasip1 -buildmode=c-shared -o ../release/backend/bdd.wasm .

- name: Build frontend
working-directory: frontend
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ cd backend
# Run tests
go test ./...

# Build WASM (requires Go 1.24+)
GOOS=wasip1 GOARCH=wasm go build -o ../dist/backend.wasm .
# Build WASM (requires TinyGo — see https://tinygo.org/getting-started/install/)
tinygo build -target=wasip1 -buildmode=c-shared -o ../dist/backend.wasm .
```

### Frontend
Expand Down
2 changes: 1 addition & 1 deletion backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/Paca-AI/first-party/bdd

go 1.24

require github.com/Paca-AI/plugin-sdk-go v0.2.0
require github.com/Paca-AI/plugin-sdk-go v0.3.3
4 changes: 2 additions & 2 deletions backend/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/Paca-AI/plugin-sdk-go v0.2.0 h1:Fur6p+OQoC5imq7qmvaQtJnZ3SRVRskx8KcT/rqFHj4=
github.com/Paca-AI/plugin-sdk-go v0.2.0/go.mod h1:5WeC6cSEf2wM1ovICZbDaVky9oi5id/Qpdfc5LDAQnw=
github.com/Paca-AI/plugin-sdk-go v0.3.3 h1:nW2DwJatraYfxo4MpwNkfQEp+9jmj7QHaU16bOXzBpM=
github.com/Paca-AI/plugin-sdk-go v0.3.3/go.mod h1:5WeC6cSEf2wM1ovICZbDaVky9oi5id/Qpdfc5LDAQnw=
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"id": "com.paca.bdd",
"displayName": "BDD Scenarios",
"description": "Adds Given/When/Then BDD acceptance criteria to tasks.",
"version": "0.3.3",
"minCoreVersion": "v0.12.2",
"version": "0.3.4",
"minCoreVersion": "v0.13.3",
"permissions": ["db.read", "db.write", "events.subscribe"],
"backend": {
"eventSubscriptions": ["task.deleted"],
Expand Down
Loading