From 20fce359fd81c2af15d33f4693897a7f12deb75d Mon Sep 17 00:00:00 2001 From: Ed Harrod Date: Tue, 9 Sep 2025 11:04:43 +0100 Subject: [PATCH 1/4] github/workflows: Use Go version in go.mod rather than static version --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61ea5c1..1282378 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: mysql: ['mysql:8'] - go: ['1.23', '1'] + go: ['1.24', '1'] services: mysql: @@ -46,4 +46,4 @@ jobs: run: go vet ./... - name: Test - run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/test?" ./... + run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/test?" ./... \ No newline at end of file From a48667d4371f5ade349f2514e0c8c648cfaf44f2 Mon Sep 17 00:00:00 2001 From: Ed Harrod Date: Tue, 9 Sep 2025 11:16:37 +0100 Subject: [PATCH 2/4] github/workflows: Update sonar workflow to use Go version from go.mod --- .github/workflows/sonar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index d2387ff..6bef446 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.24' + go-version-file: 'go.mod' - name: Generate Sonar Report run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/test?" -coverpkg=./... -coverprofile=coverage.out -json ./... > sonar-report.json From ce891a07671dbd3aba3971491a7473f5288809fb Mon Sep 17 00:00:00 2001 From: Ed Harrod Date: Mon, 22 Sep 2025 18:28:09 +0100 Subject: [PATCH 3/4] Update .github/workflows/test.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1282378..54553bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,4 +46,4 @@ jobs: run: go vet ./... - name: Test - run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/test?" ./... \ No newline at end of file + run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports['3306'] }})/test?" ./... From 26265d782fad90692312287b2c20e56566938964 Mon Sep 17 00:00:00 2001 From: Ed Harrod Date: Mon, 22 Sep 2025 18:28:22 +0100 Subject: [PATCH 4/4] Update .github/workflows/sonar.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/sonar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 6bef446..44e738c 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -30,7 +30,7 @@ jobs: go-version-file: 'go.mod' - name: Generate Sonar Report - run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/test?" -coverpkg=./... -coverprofile=coverage.out -json ./... > sonar-report.json + run: go test -db_test_base="root@tcp(localhost:${{ job.services.mysql.ports['3306'] }})/test?" -coverpkg=./... -coverprofile=coverage.out -json ./... > sonar-report.json - name: Upload coverage reports to Sonar env: