Skip to content

Commit ab724b5

Browse files
committed
refactor(ci): golangci-lint refactor
1 parent 682b059 commit ab724b5

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: golangci-lint
3+
name: GoLangci-Lint
44

55
# Controls when the workflow will run
66
on:
@@ -18,27 +18,32 @@ jobs:
1818
# This workflow contains a single job called "build"
1919
golangci-lint:
2020
# The type of runner that the job will run on
21-
runs-on: macos-12
21+
# runs-on: macos-12
22+
runs-on: [custom, linux, large]
2223

2324
# Steps represent a sequence of tasks that will be executed as part of the job
2425
steps:
2526
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v3
27+
#- uses: actions/checkout@v3
28+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2729
with:
2830
fetch-depth: 0
2931
ref: ${{ github.event.pull_request.head.sha }}
3032

31-
- uses: actions/setup-go@v3
33+
# - uses: actions/setup-go@v3
34+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3235
with:
3336
go-version-file: .go-version
3437
#go-version: '1.21'
35-
cache: false
38+
#cache: false
3639

3740
# Runs a set of commands using the runners shell
3841
- name: golangci-lint
39-
uses: golangci/golangci-lint-action@v3
42+
#uses: golangci/golangci-lint-action@v3
43+
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
4044
with:
41-
version: v1.45.2
45+
version: 'v1.55.1'
46+
#version: v1.45.2
4247
#version: v1.54
4348
working-directory: ./tencentcloud
4449
args: --new-from-rev=origin/master -v

0 commit comments

Comments
 (0)