From 27e01705d2f45c6611b0bf28192757c3ba0f67f5 Mon Sep 17 00:00:00 2001 From: bai <17348+bai@users.noreply.github.com> Date: Wed, 24 Apr 2024 11:08:41 +0300 Subject: [PATCH] Update Go to 1.22 --- .github/workflows/ci.yml | 36 ++++++++++++------------- .github/workflows/release.yml | 50 +++++++++++++++++------------------ Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61133b14..744b971d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,29 +9,29 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.21.x] + go-version: [1.22.x] platform: [ubuntu-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go-version }} + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} - - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + - uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - - name: Install dependencies - run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.0 + - name: Install dependencies + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.0 - - name: Run test suite - run: make test + - name: Run test suite + run: make test - - name: Run linter - run: make lint + - name: Run linter + run: make lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0caac2c5..71623c11 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,9 +3,9 @@ name: Release on: push: branches-ignore: - - '**' + - "**" tags: - - 'v*.*.*' + - "v*.*.*" jobs: test: @@ -13,30 +13,30 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: 1.21.x + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.22.x - - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + - uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - - name: Login to GitHub Registry - run: | - docker login docker.pkg.github.com -u bai -p "${GITHUB_TOKEN}" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Login to GitHub Registry + run: | + docker login docker.pkg.github.com -u bai -p "${GITHUB_TOKEN}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 - with: - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index c9cd00ad..25dd3b98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # stage 1: builder -FROM golang:1.21.8-alpine as builder +FROM golang:1.22.2-alpine as builder ENV BURROW_SRC /usr/src/Burrow/ diff --git a/go.mod b/go.mod index f2937ecd..5c8ae57a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/linkedin/Burrow -go 1.21 +go 1.22 require ( github.com/IBM/sarama v1.43.1