Skip to content

Commit d906ffe

Browse files
committed
add macos latest runner to test workflow
1 parent 6fcc368 commit d906ffe

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ on:
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
os:
10+
- ubuntu-latest
11+
- macos-latest
12+
runs-on: ${{ matrix.os }}
813
steps:
914
- uses: actions/checkout@v4
1015
- name: build
@@ -17,19 +22,6 @@ jobs:
1722
sleep 1
1823
curl http://127.0.0.1:8080/delay/3
1924
kill $SERVER_PID
20-
- name: install certs
21-
run: |
22-
openssl req \
23-
-newkey rsa:2048 \
24-
-x509 \
25-
-sha256 \
26-
-days 10000 \
27-
-nodes \
28-
-out cert.pem \
29-
-keyout key.pem \
30-
-subj "/C=US/ST=MN/L=Minneapolis/O=cosock/CN=cosock/" \
31-
&& sudo cp cert.pem /usr/local/share/ca-certificates \
32-
&& sudo update-ca-certificates
3325
- name: run-with-tls
3426
run: |
3527
./target/debug/cosock-test-server 8443 . &

0 commit comments

Comments
 (0)