Skip to content

Commit

Permalink
Test WASM build during CI
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Todor <[email protected]>
  • Loading branch information
mihaitodor committed Oct 24, 2024
1 parent f423b1a commit b5f2e0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Test
run: make test

- name: Test WASM build
run: make build-wasm

golangci-lint:
if: ${{ github.repository == 'redpanda-data/benthos' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ GOMAXPROCS ?= 1
build:
@go build ./cmd/benthos

build-wasm:
@GOOS=js GOARCH=wasm go build -o benthos.wasm ./cmd/benthos

install:
@go install ./cmd/benthos

Expand Down

0 comments on commit b5f2e0c

Please sign in to comment.