Skip to content

ci: add job for HTTP/2 conformance testing with h2spec #20

ci: add job for HTTP/2 conformance testing with h2spec

ci: add job for HTTP/2 conformance testing with h2spec #20

Workflow file for this run

name: HTTP/2 Conformance Test
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0
- name: Build http2.zig
run: zig build
- name: Start HTTP/2 server
run: ./zig-out/bin/http2_server &
env:
PORT: 8080
- name: Run h2spec tests
run: |
docker pull summerwind/h2spec
docker run -p 8080:8080 summerwind/h2spec -h host.docker.internal -p 8080
- name: Stop HTTP/2 server
run: kill $(lsof -t -i:8080) || true