Skip to content

Commit 18e8ff5

Browse files
committed
chore: workflow + .editorconfig
1 parent 4ff6225 commit 18e8ff5

4 files changed

Lines changed: 24 additions & 11 deletions

File tree

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = 100
13+
trim_trailing_whitespace = false

.github/workflows/actions.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ permissions:
1010
pull-requests: read
1111

1212
env:
13-
GO_VERSION: stable
14-
GOLANGCI_LINT_VERSION: v2.1.6
13+
GO_VERSION: 1.26.4
14+
GOLANGCI_LINT_VERSION: v2.12.2
1515

1616
jobs:
1717
detect-modules:
1818
runs-on: ubuntu-latest
1919
outputs:
2020
modules: ${{ steps.set-modules.outputs.modules }}
2121
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/setup-go@v5
22+
- uses: actions/checkout@v7
23+
- uses: actions/setup-go@v6
2424
with:
2525
go-version: ${{ env.GO_VERSION }}
2626
- id: set-modules
@@ -35,12 +35,12 @@ jobs:
3535
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
3636
fail-fast: false
3737
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-go@v5
38+
- uses: actions/checkout@v7
39+
- uses: actions/setup-go@v6
4040
with:
4141
go-version: ${{ env.GO_VERSION }}
4242
- name: golangci-lint ${{ matrix.module }}
43-
uses: golangci/golangci-lint-action@v8
43+
uses: golangci/golangci-lint-action@v9
4444
with:
4545
version: ${{ env.GOLANGCI_LINT_VERSION }}
4646
working-directory: ${{ matrix.module }}
@@ -54,8 +54,8 @@ jobs:
5454
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
5555
fail-fast: false
5656
steps:
57-
- uses: actions/checkout@v4
58-
- uses: actions/setup-go@v5
57+
- uses: actions/checkout@v7
58+
- uses: actions/setup-go@v6
5959
with:
6060
go-version: ${{ env.GO_VERSION }}
6161
- name: Test with the Go CLI

strcase/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ linters:
6262
- text: 'Error return value of .((os\.)?std(out|err)\..*|.*print(f|ln)?). is not checked'
6363
linters: [ errcheck ]
6464
- path: (.+)_test\.go
65-
linters: [ gocognit, mnd ]
65+
linters: [ gocognit, goconst, mnd ]
6666

6767
settings:
6868
gocognit:

time/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ linters:
6161
- text: 'Error return value of .((os\.)?std(out|err)\..*|.*print(f|ln)?). is not checked'
6262
linters: [ errcheck ]
6363
- path: (.+)_test\.go
64-
linters: [ gocognit, mnd ]
64+
linters: [ gocognit, goconst, mnd ]
6565

6666
settings:
6767
gocognit:

0 commit comments

Comments
 (0)