From 1e4bd4ec4a572e2954d0face6dcc01146b056177 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 11 Mar 2026 11:57:42 -0700 Subject: [PATCH] Upload `coverage.html` (and `coverage.txt`) directly See https://github.blog/changelog/2026-02-26-github-actions-now-supports-uploading-and-downloading-non-zipped-artifacts/ --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e32b24..f00cd8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,15 +46,31 @@ jobs: - run: .test/test.sh --deploy - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: - name: coverage + name: coverage-bundle path: | .test/.coverage/coverage.* .test/.coverage/GOCOVERDIR/ include-hidden-files: true if-no-files-found: error + - uses: actions/upload-artifact@v7 + with: + name: coverage.html + archive: false + path: .test/.coverage/coverage.html + include-hidden-files: true + if-no-files-found: error + + - uses: actions/upload-artifact@v7 + with: + name: coverage.txt + archive: false + path: .test/.coverage/coverage.txt + include-hidden-files: true + if-no-files-found: error + - name: gofmt run: find -name '*.go' -type f -exec ./.go-env.sh gofmt -l -s -w '{}' +