From 301ac859cb0f592aa22d78ab2f8503809f939f6e Mon Sep 17 00:00:00 2001 From: Manas Srivastava Date: Thu, 21 May 2026 23:49:53 +0530 Subject: [PATCH] ci: install codecov coverage uploads (Tier-2 quality) Free unlimited for public repos. Surfaces coverage delta in PR comments. No account / token needed for public repo uploads. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/coverage.yml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..43fe985 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,40 @@ +name: coverage + +on: + pull_request: + branches: [master, main] + push: + branches: [master, main] + +permissions: + contents: read + +jobs: + coverage: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + with: + path: cli + - uses: actions/checkout@v4 + with: + repository: InstaNode-dev/common + path: common + continue-on-error: true + - uses: actions/checkout@v4 + with: + repository: InstaNode-dev/proto + path: proto + continue-on-error: true + - uses: actions/setup-go@v5 + with: + go-version-file: cli/go.mod + - name: Generate coverage + working-directory: cli + run: go test ./... -short -coverprofile=coverage.out -covermode=atomic || true + - uses: codecov/codecov-action@v4 + with: + files: cli/coverage.out + flags: cli + fail_ci_if_error: false