From 42e67baf8c9da739b19e778f5a85883e810610a6 Mon Sep 17 00:00:00 2001 From: emahiro Date: Fri, 21 Feb 2025 18:24:29 +0900 Subject: [PATCH 1/4] fix: use go.mod --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 79fd821..75ec3da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,14 +6,13 @@ jobs: name: Build strategy: matrix: - go-version: [1.21.x, 1.23.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - name: Set up Go 1.x uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version-file: "go.mod" - name: Check out code into the Go module directory uses: actions/checkout@v4 From d444ecb61a345cb0069cda6d1f018bfce403fd63 Mon Sep 17 00:00:00 2001 From: emahiro Date: Fri, 21 Feb 2025 18:24:43 +0900 Subject: [PATCH 2/4] fix: support for Go1.24 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 418c744..7a4588a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/eure/slslog -go 1.23.0 +go 1.24.0 require ( go.opentelemetry.io/otel v1.9.0 From dbe7a33d5302686d017539e04b77b047718794c2 Mon Sep 17 00:00:00 2001 From: emahiro Date: Fri, 21 Feb 2025 18:25:30 +0900 Subject: [PATCH 3/4] fix: path --- .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 75ec3da..6666447 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v5 with: - go-version-file: "go.mod" + go-version-file: "./go.mod" - name: Check out code into the Go module directory uses: actions/checkout@v4 From d366e45d4b20eea2913dfb9610423daccf33f0e0 Mon Sep 17 00:00:00 2001 From: emahiro Date: Fri, 21 Feb 2025 18:27:24 +0900 Subject: [PATCH 4/4] fix: step --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6666447..f194809 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,13 +9,13 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go 1.x uses: actions/setup-go@v5 with: - go-version-file: "./go.mod" - - - name: Check out code into the Go module directory - uses: actions/checkout@v4 + go-version-file: ./go.mod - name: Get dependencies run: go mod download