File tree 1 file changed +12
-7
lines changed 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
# This is a basic workflow to help you get started with Actions
2
2
3
- name : golangci-lint
3
+ name : GoLangci-Lint
4
4
5
5
# Controls when the workflow will run
6
6
on :
@@ -18,27 +18,32 @@ jobs:
18
18
# This workflow contains a single job called "build"
19
19
golangci-lint :
20
20
# 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]
22
23
23
24
# Steps represent a sequence of tasks that will be executed as part of the job
24
25
steps :
25
26
# 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
27
29
with :
28
30
fetch-depth : 0
29
31
ref : ${{ github.event.pull_request.head.sha }}
30
32
31
- - uses : actions/setup-go@v3
33
+ # - uses: actions/setup-go@v3
34
+ - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
32
35
with :
33
36
go-version-file : .go-version
34
37
# go-version: '1.21'
35
- cache : false
38
+ # cache: false
36
39
37
40
# Runs a set of commands using the runners shell
38
41
- 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
40
44
with :
41
- version : v1.45.2
45
+ version : ' v1.55.1'
46
+ # version: v1.45.2
42
47
# version: v1.54
43
48
working-directory : ./tencentcloud
44
49
args : --new-from-rev=origin/master -v
You can’t perform that action at this time.
0 commit comments