diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index d2387ff..44e738c 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -27,10 +27,10 @@ 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 + 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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61ea5c1..54553bc 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?" ./...