File tree 9 files changed +41
-42
lines changed
9 files changed +41
-42
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,13 @@ jobs:
36
36
# a pull request then we can checkout the head.
37
37
fetch-depth : 2
38
38
39
- # If this run was triggered by a pull request event, then checkout
40
- # the head of the pull request instead of the merge commit.
41
- - run : git checkout HEAD^2
42
- if : ${{ github.event_name == 'pull_request' }}
43
-
44
39
# Initializes the CodeQL tools for scanning.
45
40
- name : Initialize CodeQL
46
41
uses : github/codeql-action/init@v1
47
42
with :
48
43
languages : ${{ matrix.language }}
49
44
# If you wish to specify custom queries, you can do so here or in a config file.
50
- # By default, queries listed here will override any specified in a config file.
45
+ # By default, queries listed here will override any specified in a config file.
51
46
# Prefix the list here with "+" to use these queries and those in the config file.
52
47
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53
48
Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v2
13
13
- uses : actions/setup-go@v2
14
14
with :
15
- go-version : ^1.16
15
+ go-version : ^1.17
16
16
- name : golangci-lint
17
17
uses : golangci/golangci-lint-action@v2
18
18
with :
21
21
# Optional: golangci-lint command line arguments.
22
22
args : --enable gosec
23
23
- name : testing
24
- run : go test ./...
24
+ run : go test -shuffle on ./...
Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v2
13
13
- uses : actions/setup-go@v2
14
14
with :
15
- go-version : ^1.16
15
+ go-version : ^1.17
16
16
- name : WriteGoList
17
17
run : go list -json -m all > go.list
18
18
- name : Nancy
Original file line number Diff line number Diff line change 1
- # Compiled Object files, Static and Dynamic libs (Shared Objects)
2
- * .o
3
- * .a
4
- * .so
1
+ # Binaries for programs and plugins
5
2
* .exe
6
- * .test
7
- * .prof
3
+ * .exe~
4
+ * .dll
5
+ * .so
6
+ * .dylib
8
7
9
- # Folders
10
- _obj
11
- _test
12
- vendor /
8
+ # Test binary, built with `go test -c`
9
+ * .test
13
10
14
- # Architecture specific extensions/prefixes
15
- * . [568vq ]
16
- [568vq ].out
11
+ # Output of the go coverage tool, specifically when used with LiteIDE
12
+ * .out
17
13
18
- * .cgo1.go
19
- * .cgo2.c
20
- _cgo_defun.c
21
- _cgo_gotypes.go
22
- _cgo_export. *
14
+ # Dependency directories (remove the comment below to include it)
15
+ # vendor/
23
16
24
- _testmain.go
17
+ # Other directories and files
18
+ .task /
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+
3
+ tasks :
4
+ default :
5
+ cmds :
6
+ - task : clean
7
+ - task : test
8
+
9
+ test :
10
+ desc : Test and lint.
11
+ cmds :
12
+ - go mod verify
13
+ - go test -shuffle on ./...
14
+ - docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.42.0 golangci-lint run --enable gosec --timeout 3m0s ./...
15
+ sources :
16
+ - ./go.mod
17
+ - ' **/*.go'
18
+
19
+ clean :
20
+ desc : Initialize module and build cache, and remake go.sum file.
21
+ cmds :
22
+ - go mod tidy -v -go=1.17
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -145,9 +145,7 @@ func getRoots(rootDir string) []string {
145
145
if len (rootDir ) == 0 {
146
146
return []string {"" }
147
147
}
148
- if strings .HasSuffix (rootDir , "/" ) {
149
- rootDir = rootDir [:len (rootDir )- 1 ]
150
- }
148
+ rootDir = strings .TrimSuffix (rootDir , "/" )
151
149
roots := []string {}
152
150
if paths , err := filepath .Glob (rootDir ); err == nil {
153
151
for _ , path := range paths {
Original file line number Diff line number Diff line change 1
1
module github.com/spiegel-im-spiegel/gocli
2
2
3
- go 1.16
3
+ go 1.17
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments