File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 66 test :
77 runs-on : ubuntu-latest
88 steps :
9+ - name : build
10+ run : cargo build
911 - name : start and hit no-ssl
1012 shell : bash
1113 run : |
12- cargo build
1314 ./target/debug/cosock-test-server &
1415 sleep 1
1516 SERVER_PID=$!
1617 curl http://127.0.0.1:8080/delay/3
1718 kill $SERVER_PID
19+ - name : install certs
20+ run : |
21+ openssl req \
22+ -newkey rsa:2048 \
23+ -x509 \
24+ -sha256 \
25+ -days 10000 \
26+ -nodes \
27+ -out cert.pem \
28+ -keyout key.pem \
29+ -subj "/C=US/ST=MN/L=Minneapolis/O=cosock/" \
30+ && cp cert.pem /usr/local/share/ca-certificates \
31+ && update-ca-certificates
32+ - name : run-with-tls
33+ run : |
34+ ./target/debug/cosock-test-server 8443 . &
35+ sleep 1
36+ SERVER_PID=$!
37+ curl https://127.0.0.1:8080/delay/3
38+ kill $SERVER_PID
39+
Original file line number Diff line number Diff line change 11/** /.DS_Store
22/target
3+ /* .pem
You can’t perform that action at this time.
0 commit comments