Skip to content

Commit

Permalink
Upgrade linter to v1.53.3 (#81)
Browse files Browse the repository at this point in the history
* Upgrade go vesion to 1.21
  • Loading branch information
hiepnv90 authored Oct 23, 2023
1 parent fa15236 commit 670fc62
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
branch_tag: ${{ steps.get_tag.outputs.branch_tag }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Extract branch
shell: bash
Expand Down Expand Up @@ -77,13 +77,13 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.19.x"
go-version: "1.21.x"
- name: Checkout
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
version: v1.53.3
args: --config=.golangci.yml
skip-pkg-cache: true
skip-build-cache: true
Expand All @@ -99,11 +99,11 @@ jobs:
- 6379:6379
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: "1.19.x"
go-version: "1.21.x"
- name: Run test
run: go test -race -v ./...

Expand All @@ -118,7 +118,7 @@ jobs:
- prepare
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
Expand All @@ -135,13 +135,13 @@ jobs:
run: gcloud auth configure-docker

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-${{ env.SERVICE }}-buildx

- name: Docker build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: [ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
Expand All @@ -56,13 +56,13 @@ jobs:
run: gcloud auth configure-docker

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-${{ env.SERVICE }}-buildx

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: true
Expand Down Expand Up @@ -95,14 +95,14 @@ jobs:
VERSION_TAG: ${{ needs.prepare.outputs.version_tag }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: "1.19.x"
go-version: "1.21.x"

- name: Setup Git
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## BUILDER
FROM golang:1.19-bullseye as builder
FROM golang:1.21-bullseye as builder

WORKDIR /src

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/KyberNetwork/evmlistener

go 1.19
go 1.21.0

toolchain go1.21.1

require (
github.com/KyberNetwork/kyber-trace-go v0.1.0
Expand Down
Loading

0 comments on commit 670fc62

Please sign in to comment.