name: h2spec
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
H2SPEC_VERSION: "2.6.0"
jobs:
h2spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install h2spec
run: |
curl -fsSL -o h2spec.tar.gz \
"https://github.com/summerwind/h2spec/releases/download/v${H2SPEC_VERSION}/h2spec_linux_amd64.tar.gz"
tar -xzf h2spec.tar.gz
chmod +x h2spec
./h2spec --version
- name: Run h2spec conformance
run: bash scripts/h2spec.sh
- name: Upload h2spec report
if: always()
uses: actions/upload-artifact@v4
with:
name: h2spec-report
path: target/h2spec-report.xml
if-no-files-found: ignore