File tree Expand file tree Collapse file tree 5 files changed +35
-12
lines changed Expand file tree Collapse file tree 5 files changed +35
-12
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
generate-tag :
11
11
name : Generate tag
12
- runs-on : ubuntu-latest
12
+ runs-on : ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || ' ubuntu-latest' }}
13
13
steps :
14
14
- name : Check out code
15
15
uses : actions/checkout@master
16
16
with :
17
17
fetch-depth : ' 0'
18
18
19
+ - name : Checkout github-tag-action
20
+ uses : actions/checkout@v3
21
+ with :
22
+ repository : ${{ vars.GENERATE_TAG_REPO || 'anothrNick/github-tag-action' }}
23
+ ref : ${{ vars.GENERATE_TAG_REF || '1.62.0' }}
24
+ path : ./.github/action${{ vars.GENERATE_TAG_PATH || '/github-tag-action/' }}
25
+ token : ${{ vars.GENERATE_TAG_SECRET && secrets[vars.GENERATE_TAG_SECRET] || secrets.GITHUB_TOKEN }}
26
+
27
+ # Generate tag if commit message contains #major or #patch or #patch
19
28
- name : Bump version and push tag
20
29
id : generate_tag
21
- uses : anz-bank/ github-tag-action@1.40.0
30
+ uses : ./. github/action/github -tag-action
22
31
env :
32
+ # An action in a workflow run can't trigger a new workflow run.
33
+ # When you use GITHUB_TOKEN in your actions, all of the interactions
34
+ # with the repository are on behalf of the Github-actions bot.
35
+ # The operations act by Github-actions bot cannot trigger a new workflow run.
36
+ # More details: https://help.github.com/en/actions/reference/events-that-trigger-workflows#about-workflow-events
23
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
38
WITH_V : true
25
39
DEFAULT_BUMP : patch
Original file line number Diff line number Diff line change 5
5
- master
6
6
- pre-generics
7
7
pull_request :
8
- jobs :
9
8
9
+ env :
10
+ GOPROXY : ${{ vars.GOPROXY }}
11
+
12
+ jobs :
10
13
lint :
11
14
name : Lint
12
- runs-on : ubuntu-latest
15
+ runs-on : ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || ' ubuntu-latest' }}
13
16
steps :
14
17
- name : Set up Go
15
18
uses : actions/setup-go@v3
@@ -21,14 +24,16 @@ jobs:
21
24
22
25
- name : Run golangci-lint
23
26
uses : golangci/golangci-lint-action@v3
24
- with :
25
- version : v1.48
26
27
27
28
build :
28
29
name : Build
29
- runs-on : ubuntu-latest
30
- container : golang:1.19
30
+ runs-on : ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
31
31
steps :
32
+ - name : Set up Go
33
+ uses : actions/setup-go@v3
34
+ with :
35
+ go-version : 1.19
36
+
32
37
- name : Check out code into the Go module directory
33
38
uses : actions/checkout@v3
34
39
37
42
38
43
test :
39
44
name : Test
40
- runs-on : ubuntu-latest
41
- container : golang:1.19
45
+ runs-on : ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
42
46
steps :
47
+ - name : Set up Go
48
+ uses : actions/setup-go@v3
49
+ with :
50
+ go-version : 1.19
51
+
43
52
- name : Check out code into the Go module directory
44
53
uses : actions/checkout@v3
45
54
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ linters:
39
39
- gocyclo
40
40
- gofmt
41
41
- goimports
42
- - revive
42
+ # - revive
43
43
- gosec
44
44
- gosimple
45
45
- govet
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const (
13
13
14
14
type Error string
15
15
16
+ //nolint:errcheck // This is assigning to _ as an error type, not ignoring an error return
16
17
var _ error = Error ("" )
17
18
18
19
func (p Error ) Error () string {
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ const invalidCutpoint = Cutpointdata(-1)
81
81
82
82
func (s Scope ) ReplaceCutPoint (force bool ) (newScope Scope , prev , replacement Cutpointdata ) {
83
83
prev = s .GetCutPoint ()
84
- replacement = invalidCutpoint
85
84
if prev .valid () || force {
86
85
// TODO: What's with the random number?
87
86
replacement = Cutpointdata (rand .Int31 ()) //nolint:gosec
You can’t perform that action at this time.
0 commit comments