From 3f1f2aef733ab1b641110a2799b47e595624906b Mon Sep 17 00:00:00 2001 From: Jin Xu Date: Fri, 6 Nov 2026 12:29:19 +0800 Subject: [PATCH] Remove the Codecov upload Every upload fails with "Token required because branch is protected", which fail_ci_if_error: false hides, so the coverage reaches nobody. Each tag set also overwrote coverage.txt, so only the last one would have been uploaded, file: is not an input of codecov-action v5, and the Windows job, which only runs go build, has no coverage to upload. Remove both upload steps, the -coverprofile flags that wrote the file, .codecov.yml, and the OS and GO variables that only the upload read. --- .codecov.yml | 4 ---- .github/workflows/go.yaml | 26 ++++---------------------- 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 35cde5cd5..000000000 --- a/.codecov.yml +++ /dev/null @@ -1,4 +0,0 @@ -coverage: - status: - project: off - patch: off diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index cbbd40f95..cf5a83eca 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -16,9 +16,6 @@ jobs: os: [ubuntu-latest, macos-latest] go: ['1.26', '1.27'] fail-fast: false - env: - OS: ${{ matrix.os }} - GO: ${{ matrix.go }} steps: - if: startsWith(matrix.os, 'macos') run: brew update @@ -30,22 +27,16 @@ jobs: - uses: actions/checkout@v6 - name: 'Tags: default' - run: go test -race -v -coverprofile=coverage.txt -tags "" + run: go test -race -v -tags "" - name: 'Tags: libsqlite3' - run: go test -race -v -coverprofile=coverage.txt -tags "libsqlite3" + run: go test -race -v -tags "libsqlite3" - name: 'Tags: full' - run: go test -race -v -coverprofile=coverage.txt -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_vacuum_incr sqlite_vtable" + run: go test -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_vacuum_incr sqlite_vtable" - name: 'Tags: vacuum' - run: go test -race -v -coverprofile=coverage.txt -tags "sqlite_vacuum_full" - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - env_vars: OS,GO - file: coverage.txt + run: go test -race -v -tags "sqlite_vacuum_full" test-windows: name: Test for Windows @@ -58,9 +49,6 @@ jobs: matrix: go: ['1.26', '1.27'] fail-fast: false - env: - OS: windows-latest - GO: ${{ matrix.go }} steps: - uses: msys2/setup-msys2@v2 with: @@ -98,10 +86,4 @@ jobs: run: go build -race -v -tags "sqlite_vacuum_full" shell: msys2 {0} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - env_vars: OS,GO - file: coverage.txt - # based on: github.com/koron-go/_skeleton/.github/workflows/go.yml