Skip to content

add macos latest runner to test workflow #16

add macos latest runner to test workflow

add macos latest runner to test workflow #16

Workflow file for this run

on:
pull_request:
push:
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: build
run: cargo build
- name: start and hit no-ssl
shell: bash
run: |
./target/debug/cosock-test-server &
SERVER_PID=$!
sleep 1
curl http://127.0.0.1:8080/delay/3
kill $SERVER_PID
- name: run-with-tls
run: |
./target/debug/cosock-test-server 8443 . &
SERVER_PID=$!
sleep 1
curl -k https://127.0.0.1:8443/delay/3 --cacert ./cert.pem
EXIT_CODE=$?
kill $SERVER_PID
exit $EXIT_CODE