Skip to content

Commit cc50d11

Browse files
committed
fix(ci): update Go version source and align golangci-lint versions
Signed-off-by: Mike Nguyen <hey@mike.ee>
1 parent 1446bf4 commit cc50d11

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries
3434
runs-on: ${{ matrix.os }}
3535
env:
36-
GOVER: 1.21
37-
GOLANGCILINT_VER: 1.56.2
36+
GOLANGCILINT_VER: 1.64.6
3837
GOOS: ${{ matrix.target_os }}
3938
GOARCH: ${{ matrix.target_arch }}
4039
GOPROXY: https://proxy.golang.org
@@ -59,22 +58,23 @@ jobs:
5958
- os: windows-latest
6059
target_arch: arm64
6160
steps:
61+
- name: Check out code into the Go module directory
62+
uses: actions/checkout@v6
6263
- name: Setup node ${{ env.NODE_VERSION }} and npm
6364
uses: actions/setup-node@v1
6465
with:
6566
node-version: ${{ env.NODE_VERSION }}
6667
- name: Install angular cli
6768
run: npm install -g @angular/cli
68-
- name: Set up Go ${{ env.GOVER }}
69-
uses: actions/setup-go@v2
69+
- name: Set up Go (using root 'go.mod' version)
70+
uses: actions/setup-go@v6
7071
with:
71-
go-version: ${{ env.GOVER }}
72-
- name: Install golangci-lint
73-
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux'
74-
run: |
75-
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${{ env.GOROOT }}/bin" v${{ env.GOLANGCILINT_VER }}
76-
- name: Check out code into the Go module directory
77-
uses: actions/checkout@v2
72+
go-version-file: 'go.mod'
73+
- name: golangci-lint
74+
uses: golangci/golangci-lint-action@v6.1.1
75+
with:
76+
version: ${{ env.GOLANGCILINT_VER }}
77+
skip-cache: true
7878
- name: Parse release version and set REL_VERSION
7979
run: python ./.github/scripts/get_release_version.py
8080
- name: Run make lint

0 commit comments

Comments
 (0)