From f5160c05d363a9f8cbe35093034642945b523807 Mon Sep 17 00:00:00 2001 From: Jin Xu Date: Fri, 6 Nov 2026 09:06:18 +0800 Subject: [PATCH 1/2] Run the tests with go test instead of go-acc ory/go-acc is archived, and every run installed its latest version with its own dependencies. For a single package it only runs go test with a coverage profile, which go test writes itself; with -race the cover mode is atomic, as go-acc set it. --- .github/workflows/go.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index a1b32dc4f..e4fb8539c 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -27,27 +27,19 @@ jobs: with: go-version: ${{ matrix.go }} - - name: Get Build Tools - run: | - GO111MODULE=on go install github.com/ory/go-acc@latest - - - name: Add $GOPATH/bin to $PATH - run: | - echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" - - uses: actions/checkout@v6 - name: 'Tags: default' - run: go-acc . -- -race -v -tags "" + run: go test -race -v -coverprofile=coverage.txt -tags "" - name: 'Tags: libsqlite3' - run: go-acc . -- -race -v -tags "libsqlite3" + run: go test -race -v -coverprofile=coverage.txt -tags "libsqlite3" - name: 'Tags: full' - run: go-acc . -- -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" + 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" - name: 'Tags: vacuum' - run: go-acc . -- -race -v -tags "sqlite_vacuum_full" + run: go test -race -v -coverprofile=coverage.txt -tags "sqlite_vacuum_full" - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 From 2b3109a1f6f131772f4a293c3fd09bb6b0dd8bd5 Mon Sep 17 00:00:00 2001 From: Jin Xu Date: Fri, 6 Nov 2026 09:06:18 +0800 Subject: [PATCH 2/2] Test with Go 1.26 and 1.27 CovenantSQL builds with Go 1.27, which CI did not test. Go supports the two latest releases, 1.26 and 1.27, so 1.24 and 1.25 are dropped. go.mod still requires Go 1.21. --- .github/workflows/go.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index e4fb8539c..cbbd40f95 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - go: ['1.24', '1.25', '1.26'] + go: ['1.26', '1.27'] fail-fast: false env: OS: ${{ matrix.os }} @@ -56,7 +56,7 @@ jobs: strategy: matrix: - go: ['1.24', '1.25', '1.26'] + go: ['1.26', '1.27'] fail-fast: false env: OS: windows-latest