From d7ee2a9a4847ebe11f5a5ae520743a44f80ec9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20LAMBERT?= Date: Mon, 19 Feb 2024 17:40:44 +0100 Subject: [PATCH] Fix CI --- .github/workflows/test.yml | 18 +++++++++--------- README.md | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e21d34b..df80567 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ["1.19", "1.21"] + go: ["1.21", "1.22"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: Run tests @@ -26,7 +26,7 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./... go tool cover -html=coverage.txt -o coverage.html - - if: ${{ matrix.go == '1.21' }} + - if: ${{ matrix.go == '1.22' }} name: 'Upload Coverage artifact' uses: actions/upload-artifact@v3 with: @@ -38,13 +38,13 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" cache: false - name: Run lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: - version: v1.54 + version: v1.56 args: --timeout 5m \ No newline at end of file diff --git a/README.md b/README.md index 5d2e964..8ffdb28 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ In the `main` function, start the tracer after loading the config: import goyavetrace "github.com/onfocusio/dd-trace-goyave" func main() { - cfg := Config{ + cfg := goyavetrace.Config{ AgentAddr: config.GetString("app.datadog.agentAddr"), Env: config.GetString("app.environment"), Service: config.GetString("app.datadog.service"), @@ -54,7 +54,7 @@ func Register(router *goyave.Router) { s.SetTag(ext.ManualKeep, true) } - cfg := Config{ + cfg := goyavetrace.Config{ AgentAddr: config.GetString("app.datadog.agentAddr"), Env: config.GetString("app.environment"), Service: config.GetString("app.datadog.service"),