Skip to content

Commit

Permalink
Update module to v2 and test newer versions of Go
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Dec 3, 2024
1 parent ba97bf7 commit f78162b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/gotest.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
name: gotest
name: Go Test

on: [pull_request]
on:
push:
branches:
- master
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
pull_request:
branches:
- master

jobs:
gotest:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
goVer: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19]
go-version: [
# "1.14",
# "1.15",
# "1.16",
"1.17",
"1.18",
"1.19",
"1.20",
"1.21",
oldstable,
stable,
]
steps:
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v1
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Golang Environment
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVer }}
- name: Check out source
uses: actions/checkout@v1
go-version: ${{ matrix.go-version }}

- name: Test
run: go test -v -cover -race ./...
run: go test -v -cover -race -shuffle=on ./...
2 changes: 1 addition & 1 deletion examples/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/opentracing-contrib/go-gin/ginhttp"
"github.com/opentracing-contrib/go-gin/v2/ginhttp"
opentracing "github.com/opentracing/opentracing-go"
jaeger "github.com/uber/jaeger-client-go"
"github.com/uber/jaeger-client-go/zipkin"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/opentracing-contrib/go-gin
module github.com/opentracing-contrib/go-gin/v2

go 1.14

Expand Down

0 comments on commit f78162b

Please sign in to comment.