From 60115ead6db94be0e3622945da9cd3708aba27b8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 18:02:25 +0000 Subject: [PATCH 1/3] Initial plan From 3c888c99a511732fdba8d8e7b0b080d1ffc608c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 18:04:29 +0000 Subject: [PATCH 2/3] Add coverage badge to README next to CI badge Co-authored-by: pgit <1456612+pgit@users.noreply.github.com> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 461177a..9ef343f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Overview [![Build and run tests](https://github.com/pgit/anyhttp/actions/workflows/release.yml/badge.svg)](https://github.com/pgit/anyhttp/actions/workflows/release.yml) +[![Coverage](https://img.shields.io/badge/coverage-report-blue)](https://pgit.github.io/anyhttp/coverage/) Low-level C++ HTTP client and server library, based on ASIO and its asynchronous model. From 9f43ac3ee1f87e04cbefad0a46f8458b0238c5b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 18:07:46 +0000 Subject: [PATCH 3/3] Add GitHub Pages deployment for coverage report Co-authored-by: pgit <1456612+pgit@users.noreply.github.com> --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b29b4c..7ea9ab2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,6 +76,10 @@ jobs: runs-on: ubuntu-latest container: image: docker.io/psedoc/anyhttp:0.22 + permissions: + contents: read + pages: write + id-token: write steps: - *checkout @@ -90,9 +94,26 @@ jobs: run: | cmake --build build --target coverage + - name: Prepare Pages directory + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + run: | + mkdir -p pages/coverage + cp -r build/coverage_report/* pages/coverage/ + - name: Upload Coverage Report uses: actions/upload-artifact@v4 with: name: coverage-report path: build/coverage_report/ retention-days: 30 + + - name: Upload coverage to GitHub Pages + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + uses: actions/upload-pages-artifact@v3 + with: + path: pages/ + + - name: Deploy to GitHub Pages + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + id: deployment + uses: actions/deploy-pages@v4