From a4f8c3f1c086c6b4c14820f9be4e5d05c1694d3d Mon Sep 17 00:00:00 2001 From: Peter Adams <63288215+PeterAdams-A@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:00:09 +0000 Subject: [PATCH] Add HTTP/2 spec tests to CI (#475) Motivation: More testing is better. Modifications: Setup github actions to run http/2 spec tests. Result: Testing against http/2 spec occurs on pull requests --- .github/workflows/main.yml | 7 +++++++ .github/workflows/pull_request.yml | 7 +++++++ .github/workflows/scheduled.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 63411c2b..912039e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,3 +18,10 @@ jobs: cxx-interop: name: Cxx interop uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main + + h2spec: + name: HTTP/2 spec tests + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "HTTP/2 spec tests" + matrix_linux_command: "apt-get update -y -q && apt-get install -y -q wget lsof && mkdir $HOME/.tools && wget -q https://github.com/summerwind/h2spec/releases/download/v2.2.1/h2spec_linux_amd64.tar.gz -O $HOME/.tools/h2spec.tar.gz && tar xzf $HOME/.tools/h2spec.tar.gz --directory $HOME/.tools && PATH=${PATH}:$HOME/.tools && ./scripts/test_h2spec.sh" diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index e1dcf6f8..741b5304 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -26,3 +26,10 @@ jobs: cxx-interop: name: Cxx interop uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main + + h2spec: + name: HTTP/2 spec tests + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "HTTP/2 spec tests" + matrix_linux_command: "apt-get update -y -q && apt-get install -y -q wget lsof && mkdir $HOME/.tools && wget -q https://github.com/summerwind/h2spec/releases/download/v2.2.1/h2spec_linux_amd64.tar.gz -O $HOME/.tools/h2spec.tar.gz && tar xzf $HOME/.tools/h2spec.tar.gz --directory $HOME/.tools && PATH=${PATH}:$HOME/.tools && ./scripts/test_h2spec.sh" diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 4c1894a6..ff37a4d3 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -18,3 +18,10 @@ jobs: cxx-interop: name: Cxx interop uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main + + h2spec: + name: HTTP/2 spec tests + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "HTTP/2 spec tests" + matrix_linux_command: "apt-get update -y -q && apt-get install -y -q wget lsof && mkdir $HOME/.tools && wget -q https://github.com/summerwind/h2spec/releases/download/v2.2.1/h2spec_linux_amd64.tar.gz -O $HOME/.tools/h2spec.tar.gz && tar xzf $HOME/.tools/h2spec.tar.gz --directory $HOME/.tools && PATH=${PATH}:$HOME/.tools && ./scripts/test_h2spec.sh"