diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1add79f..36f28df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" - - uses: actions/checkout@v4 + go-version-file: go.mod - uses: bufbuild/buf-setup-action@v1 with: version: "latest" @@ -30,9 +30,6 @@ jobs: golangci: name: golangci-lint needs: [buf] - strategy: - matrix: - go: ["1.22"] permissions: contents: read pull-requests: read @@ -44,7 +41,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version-file: go.mod - name: golangci-lint uses: golangci/golangci-lint-action@v6 @@ -55,16 +52,13 @@ jobs: test: runs-on: ubuntu-latest needs: [golangci] - strategy: - matrix: - go: ["1.22"] steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version-file: go.mod - run: make install - run: make build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 437c631..03c35dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version-file: go.mod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/Dockerfile b/Dockerfile index fe2bc88..7644fc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22 AS builder +FROM golang:1.23 AS builder RUN cat /etc/os-release diff --git a/go.mod b/go.mod index 6ad09c4..c03b9e1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ringsaturn/tzf-server -go 1.22.0 +go 1.23 require ( github.com/cloudwego/hertz v0.9.2