File tree Expand file tree Collapse file tree 1 file changed +40
-3
lines changed Expand file tree Collapse file tree 1 file changed +40
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Makefile CI
1
+ name : build and test
2
2
3
3
on :
4
4
push :
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
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: build using makefile
22
+ # run: make websocketd
23
+
24
+ - name : build websocketd
25
+ run : go build
26
+
27
+ - name : Archive build artifacts
28
+ uses : actions/upload-artifact@v4
29
+ with :
30
+ name : websocketd
31
+ path : |
32
+ websocketd
33
+ ./examples/bash/dump-env.sh
34
+
35
+
36
+ test :
37
+ needs : build
38
+ runs-on : ubuntu-latest
39
+
40
+ steps :
41
+ - name : Download built websocketd
42
+ uses : actions/download-artifact@v4
43
+ with :
44
+ name : websocketd
45
+
46
+ - name : fix permissions
47
+ run : chmod +x ./websocketd && chmod +x ./examples/bash/dump-env.sh
48
+
49
+ - name : setup client
50
+ run : wget https://github.com/vi/websocat/releases/latest/download/websocat.x86_64-unknown-linux-musl && chmod +x websocat.x86_64-unknown-linux-musl
51
+
52
+ - name : test
53
+ run : |
54
+ ./websocketd --port=8080 ./examples/bash/dump-env.sh &
55
+ ./websocat.x86_64-unknown-linux-musl -E ws://$(hostname):8080
You can’t perform that action at this time.
0 commit comments