ci: add job for HTTP/2 conformance testing with h2spec #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |