Skip to content

Commit 750ff92

Browse files
authored
Merge pull request #50 from foomo/feature/go-1.26.0
feat: go 1.26.0
2 parents 74a8d82 + 810a47c commit 750ff92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+822
-403
lines changed

.editorconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
14
root = true
25

36
[*]
47
charset = utf-8
5-
end_of_line = lf
68
indent_size = 2
79
indent_style = tab
810
insert_final_newline = true
911
trim_trailing_whitespace = true
12+
end_of_line = lf
1013

11-
[*.{yaml,yml}]
14+
[*.{yaml,yml,md,hcl}]
1215
indent_style = space

.github/dependabot.yml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,40 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/dependabot-2.0.json
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
63
version: 2
4+
75
updates:
8-
- package-ecosystem: "github-actions"
9-
directory: "/"
6+
- package-ecosystem: github-actions
7+
open-pull-requests-limit: 1
8+
commit-message: { prefix: chore(deps) }
9+
directory: '/'
1010
schedule:
11-
interval: "weekly"
12-
- package-ecosystem: "gomod"
13-
directory: "/"
11+
day: sunday
12+
interval: weekly
13+
timezone: Europe/Berlin
14+
groups:
15+
github-actions:
16+
patterns: [ '*' ]
17+
cooldown:
18+
default-days: 1
19+
include: [ '*' ]
20+
21+
- package-ecosystem: gomod
22+
open-pull-requests-limit: 1
23+
commit-message: { prefix: sec(deps) }
24+
directories: [ '**/*' ]
1425
schedule:
15-
interval: "weekly"
26+
interval: daily
27+
groups:
28+
security:
29+
applies-to: security-updates
30+
update-types: [ minor, patch ]
31+
patterns: [ '*' ]
32+
ignore:
33+
- dependency-name: '*'
34+
update-types: [ 'version-update:semver-major' ]
35+
cooldown:
36+
default-days: 1
37+
semver-major-days: 14
38+
semver-minor-days: 7
39+
semver-patch-days: 1
40+
include: [ '*' ]

.github/workflows/pull-requests.yml

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

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- v*.*.*
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: jdx/mise-action@v3
21+
22+
- uses: actions/setup-go@v6
23+
with:
24+
go-version-file: go.mod
25+
26+
- uses: goreleaser/goreleaser-action@v7
27+
with:
28+
version: '~> v2'
29+
args: release --clean
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/releases.yaml

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

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test Branch
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
merge_group:
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- uses: jdx/mise-action@v3
21+
22+
- uses: actions/setup-go@v6
23+
with:
24+
check-latest: true
25+
go-version-file: 'go.mod'
26+
27+
- name: Setup golangci-lint cache
28+
uses: actions/cache@v5
29+
with:
30+
path: /home/runner/.cache/golangci-lint
31+
key: golangci-lint-${{ runner.os }}-${{ hashFiles('**/go.mod') }}
32+
restore-keys: |
33+
golangci-lint-${{ runner.os }}-
34+
35+
- name: Run go mod tidy
36+
run: make tidy && git diff --exit-code
37+
38+
- name: Run go generate
39+
run: make generate && git diff --exit-code
40+
41+
- name: Run go lint
42+
run: make lint
43+
44+
- name: Run go tests
45+
run: make test

.gitignore

Lines changed: 42 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,43 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/jetbrains,go,visualstudiocode,macos
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains,go,visualstudiocode,macos
3-
4-
### macOS ###
5-
# General
6-
.DS_Store
7-
.AppleDouble
8-
.LSOverride
9-
10-
# Icon must end with two \r
11-
Icon
12-
13-
# Thumbnails
14-
._*
15-
16-
# Files that might appear in the root of a volume
17-
.DocumentRevisions-V100
18-
.fseventsd
19-
.Spotlight-V100
20-
.TemporaryItems
21-
.Trashes
22-
.VolumeIcon.icns
23-
.com.apple.timemachine.donotpresent
24-
25-
# Directories potentially created on remote AFP share
26-
.AppleDB
27-
.AppleDesktop
28-
Network Trash Folder
29-
Temporary Items
30-
.apdisk
31-
32-
### Go ###
33-
# Binaries for programs and plugins
34-
*.exe
35-
*.exe~
36-
*.dll
37-
*.so
38-
*.dylib
39-
40-
# Test binary, built with `go test -c`
41-
*.test
42-
43-
# Output of the go coverage tool, specifically when used with LiteIDE
44-
*.out
45-
46-
# Dependency directories (remove the comment below to include it)
47-
# vendor/
48-
49-
### Go Patch ###
50-
/vendor/
51-
/Godeps/
52-
53-
### JetBrains ###
54-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
55-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
56-
.idea/
57-
58-
### VisualStudioCode ###
59-
.vscode/
60-
61-
# End of https://www.toptal.com/developers/gitignore/api/jetbrains,go,visualstudiocode,macos
62-
63-
/tmp/
1+
.*
642
*.log
3+
*.pid
4+
*.retry
5+
*.out
6+
*.tgz
7+
*.zip
8+
*.pem
9+
bin/
10+
tmp/
11+
12+
## Git
13+
!.gitkeep
14+
!.gitignore
15+
!.gitattributes
16+
17+
## GitHub
18+
!.github/
19+
20+
## Mise
21+
!.mise.toml
22+
23+
## Lefthook
24+
!.lefthook.yaml
25+
26+
## VSCode
27+
!.vscode/
28+
.vscode/*
29+
!.vscode/extensions.json
30+
!.vscode/settings.default.json
31+
32+
## Editorconfig
33+
!.editorconfig
34+
35+
## Golang
36+
go.work
37+
go.work.sum
38+
!.golangci.yaml
39+
!.goreleaser.yaml
40+
41+
## Vitepress
42+
node_modules/
43+
!docs/.vitepress

0 commit comments

Comments
 (0)