Skip to content

Commit 2dfd24d

Browse files
authored
Merge pull request #173 from creack/tests-cleanup
Tests cleanup
2 parents a425b37 + cafb3b4 commit 2dfd24d

File tree

14 files changed

+576
-327
lines changed

14 files changed

+576
-327
lines changed

.editorconfig

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
root = true
2+
3+
# Sane defaults.
4+
[*]
5+
# Always use unix end of line.
6+
end_of_line = lf
7+
# Always insert a new line at the end of files.
8+
insert_final_newline = true
9+
# Don't leave trailing whitespaces.
10+
trim_trailing_whitespace = true
11+
# Default to utf8 encoding.
12+
charset = utf-8
13+
# Space > tab for consistent aligns.
14+
indent_style = space
15+
# Default to 2 spaces for indent/tabs.
16+
indent_size = 2
17+
# Flag long lines.
18+
max_line_length = 140
19+
20+
# Explicitly define settings for commonly used files.
21+
22+
[*.go]
23+
indent_style = tab
24+
indent_size = 8
25+
26+
[*.feature]
27+
indent_style = space
28+
indent_size = 2
29+
30+
[*.json]
31+
indent_style = space
32+
indent_size = 2
33+
34+
[*.{yml,yaml}]
35+
indent_style = space
36+
indent_size = 2
37+
38+
[*.tf]
39+
indent_style = space
40+
indent_size = 2
41+
42+
[*.md]
43+
# Don't check line lenghts in files.
44+
max_line_length = 0
45+
46+
[{Makefile,*.mk}]
47+
indent_style = tab
48+
indent_size = 8
49+
50+
[{Dockerfile,Dockerfile.*}]
51+
indent_size = 4
52+
53+
[*.sql]
54+
indent_size = 2

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@ jobs:
4848
- name: Build
4949
run: go build -v
5050

51-
- name: Test
51+
# Skip tests for 1.6 as we use modern Go.
52+
# If the main lib builds and tests pass on other versions, we are good.
53+
- if: ${{ matrix.go_version != '1.6.x' }}
54+
name: Test
5255
run: go test -v

.golangci.yml

Lines changed: 324 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)