Skip to content

Commit c0c6966

Browse files
committed
ci(*): add test target, add to workflows
Signed-off-by: Vaughn Dice <[email protected]>
1 parent 8501f70 commit c0c6966

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
wget https://github.com/tinygo-org/tinygo/releases/download/v0.37.0/tinygo_0.37.0_amd64.deb
2525
sudo dpkg -i tinygo_0.37.0_amd64.deb
2626
27-
- name: Make
27+
- name: Build
2828
env:
2929
ENABLE_WASM_OPT: false
3030
run: make build
31+
32+
- name: Test
33+
env:
34+
ENABLE_WASM_OPT: false
35+
run: make test

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ jobs:
2626
wget https://github.com/tinygo-org/tinygo/releases/download/v0.37.0/tinygo_0.37.0_amd64.deb
2727
sudo dpkg -i tinygo_0.37.0_amd64.deb
2828
29-
- name: Make
29+
- name: Build
3030
env:
3131
ENABLE_WASM_OPT: false
3232
run: make build
3333

34+
- name: Test
35+
env:
36+
ENABLE_WASM_OPT: false
37+
run: make test
38+
3439
- name: generate checksums
3540
run: |
3641
sha256sum redirect.wasm > checksums-${{ env.RELEASE_VERSION }}.txt

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ build:
66
ifeq ($(ENABLE_WASM_OPT),true)
77
wasm-opt -Os -o redirect.wasm redirect.wasm
88
endif
9+
10+
.PHONY: test
11+
test:
12+
tinygo test -target=wasip1 -gc=leaking -v ./redirect/...

0 commit comments

Comments
 (0)