Skip to content

Commit 846cd1a

Browse files
Merge pull request #11 from spiegel-im-spiegel/fix-bugs
Bump up version of external packages
2 parents 509b0ff + d021e0d commit 846cd1a

File tree

9 files changed

+404
-108
lines changed

9 files changed

+404
-108
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,13 @@ jobs:
3636
# a pull request then we can checkout the head.
3737
fetch-depth: 2
3838

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-
4439
# Initializes the CodeQL tools for scanning.
4540
- name: Initialize CodeQL
4641
uses: github/codeql-action/init@v1
4742
with:
4843
languages: ${{ matrix.language }}
4944
# 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.
5146
# Prefix the list here with "+" to use these queries and those in the config file.
5247
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5348

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: ^1.16
15+
go-version: ^1.17
1616
- name: golangci-lint
1717
uses: golangci/golangci-lint-action@v2
1818
with:

.github/workflows/vulns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: ^1.16
15+
go-version: ^1.17
1616
- name: install depm
1717
run: go install github.com/spiegel-im-spiegel/depm@latest
1818
- name: WriteGoList

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@
1010

1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out
13+
14+
# Other files and folders
15+
*.bak
16+
.task/

Taskfile.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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.1 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

clean-all.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

go.mod

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
module github.com/spiegel-im-spiegel/openbd-api
22

3-
go 1.16
3+
go 1.17
44

55
require (
6-
github.com/spf13/cobra v1.1.3
7-
github.com/spiegel-im-spiegel/errs v1.0.2
8-
github.com/spiegel-im-spiegel/fetch v0.2.3
9-
github.com/spiegel-im-spiegel/gocli v0.10.4
6+
github.com/spf13/cobra v1.2.1
7+
github.com/spiegel-im-spiegel/errs v1.0.5
8+
github.com/spiegel-im-spiegel/fetch v0.2.5
9+
github.com/spiegel-im-spiegel/gocli v0.10.5
10+
)
11+
12+
require (
13+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
14+
github.com/spf13/pflag v1.0.5 // indirect
1015
)

go.sum

Lines changed: 365 additions & 85 deletions
Large diffs are not rendered by default.

test-all.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)