Skip to content

Commit 59f3c58

Browse files
committed
test: add test and build caching
1 parent 5e1b61c commit 59f3c58

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/makefile.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Makefile CI
1+
name: build
22

33
on:
44
push:
@@ -14,5 +14,20 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: make binary
18-
run: make websocketd
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version-file: go.mod
20+
21+
- name: setup client
22+
run: wget https://github.com/vi/websocat/releases/latest/download/websocat.x86_64-unknown-linux-musl && chmod +x websocat.x86_64-unknown-linux-musl
23+
24+
# - name: build using makefile
25+
# run: make websocketd
26+
27+
- name: build native
28+
run: go build
29+
30+
- name: test
31+
run: |
32+
./websocketd --port=8080 python ./examples/python/count.py &
33+
./websocat.x86_64-unknown-linux-musl -E ws://$(hostname):8080

0 commit comments

Comments
 (0)