File tree 5 files changed +27
-23
lines changed
5 files changed +27
-23
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
# See https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
3
3
4
version : 2
4
5
updates :
5
- - package-ecosystem : " gomod"
6
- directory : " / "
6
+ - package-ecosystem : gomod
7
+ directory : /
7
8
schedule :
8
- interval : " weekly"
9
+ interval : weekly
9
10
10
- - package-ecosystem : " github-actions"
11
- directory : " / "
11
+ - package-ecosystem : github-actions
12
+ directory : /
12
13
schedule :
13
- interval : " weekly"
14
+ interval : weekly
Original file line number Diff line number Diff line change
1
+ ---
1
2
name : Go
2
3
3
4
on :
4
5
push :
5
6
pull_request :
6
- branches : [" main" ]
7
+ branches : [main]
7
8
workflow_dispatch :
8
-
9
9
jobs :
10
10
test :
11
11
name : test
16
16
- name : Set up Go
17
17
uses : actions/setup-go@v5
18
18
with :
19
- go-version : ' 1.22.0'
19
+ go-version : 1.22.0
20
20
21
21
- name : Check that all packages are compiling
22
22
run : make build
@@ -49,12 +49,12 @@ jobs:
49
49
- name : Set up Go
50
50
uses : actions/setup-go@v5
51
51
with :
52
- go-version : ' 1.22.0'
52
+ go-version : 1.22.0
53
53
54
54
- name : Check actuality of go.mod and go.sum
55
55
run : |
56
56
go mod tidy
57
- git diff --exit-code && exit 0 || true
57
+ git diff --exit-code && exit 0 || true
58
58
echo '######################################################################'
59
59
echo
60
60
echo "ERROR: go.mod or go.sum is different from the committed version"
71
71
- uses : actions/checkout@v4
72
72
- uses : actions/setup-go@v5
73
73
with :
74
- go-version : ' 1.22.0'
74
+ go-version : 1.22.0
75
75
- name : golangci-lint
76
76
uses : golangci/golangci-lint-action@v6
77
77
with :
Original file line number Diff line number Diff line change
1
+ ---
1
2
image : golang:1.22
2
3
3
4
stages :
47
48
coverage_report :
48
49
coverage_format : cobertura
49
50
path : coverage.xml
50
- coverage : ' /^total:\s+\(statements\)\s+(\d+(?:\.\d+)?%)/'
51
+ coverage : /^total:\s+\(statements\)\s+(\d+(?:\.\d+)?%)/
51
52
only :
52
53
- branches
53
54
@@ -59,13 +60,13 @@ check-go-modules:
59
60
script :
60
61
- go mod tidy
61
62
- |
62
- git diff --exit-code && exit 0 || true
63
- echo -e "\033[0;31m"
64
- echo '######################################################################'
65
- echo
66
- echo "ERROR: go.mod or go.sum is different from the committed version"
67
- echo "Try using 'go mod tidy' to fix the go.mod and go.sum files"
68
- echo "Also, don't forget to commit and push changes"
69
- echo
70
- echo '######################################################################'
63
+ git diff --exit-code && exit 0 || true
64
+ echo -e "\033[0;31m"
65
+ echo '######################################################################'
66
+ echo
67
+ echo "ERROR: go.mod or go.sum is different from the committed version"
68
+ echo "Try using 'go mod tidy' to fix the go.mod and go.sum files"
69
+ echo "Also, don't forget to commit and push changes"
70
+ echo
71
+ echo '######################################################################'
71
72
exit 1
Original file line number Diff line number Diff line change
1
+ ---
1
2
linters :
2
3
disable-all : true
3
4
enable :
Original file line number Diff line number Diff line change
1
+ ---
1
2
version : " 3.8"
2
3
3
4
services :
@@ -15,7 +16,7 @@ services:
15
16
retries : 5
16
17
timeout : 5s
17
18
ports :
18
- - " 32260:5432"
19
+ - 32260:5432
19
20
volumes :
20
21
- ./docker-multiple-databases.sh:/docker-entrypoint-initdb.d/docker-multiple-databases.sh:ro
21
22
tmpfs :
You can’t perform that action at this time.
0 commit comments