Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf

[*.{yaml,yml}]
[*.{yaml,yml,md,hcl}]
indent_style = space
47 changes: 36 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/dependabot-2.0.json
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
open-pull-requests-limit: 1
commit-message: { prefix: chore(deps) }
directory: '/'
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/"
day: sunday
interval: weekly
timezone: Europe/Berlin
groups:
github-actions:
patterns: [ '*' ]
cooldown:
default-days: 1
include: [ '*' ]

- package-ecosystem: gomod
open-pull-requests-limit: 1
commit-message: { prefix: sec(deps) }
directories: [ '**/*' ]
schedule:
interval: "weekly"
interval: daily
groups:
security:
applies-to: security-updates
update-types: [ minor, patch ]
patterns: [ '*' ]
ignore:
- dependency-name: '*'
update-types: [ 'version-update:semver-major' ]
cooldown:
default-days: 1
semver-major-days: 14
semver-minor-days: 7
semver-patch-days: 1
include: [ '*' ]
38 changes: 0 additions & 38 deletions .github/workflows/pull-requests.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Tag

on:
push:
tags:
- v*.*.*
workflow_dispatch:

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: jdx/mise-action@v3

- uses: actions/setup-go@v6
with:
go-version-file: go.mod

- uses: goreleaser/goreleaser-action@v7
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 0 additions & 34 deletions .github/workflows/releases.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test Branch

on:
push:
branches: [ main ]
pull_request:
merge_group:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: jdx/mise-action@v3

- uses: actions/setup-go@v6
with:
check-latest: true
go-version-file: 'go.mod'

- name: Setup golangci-lint cache
uses: actions/cache@v5
with:
path: /home/runner/.cache/golangci-lint
key: golangci-lint-${{ runner.os }}-${{ hashFiles('**/go.mod') }}
restore-keys: |
golangci-lint-${{ runner.os }}-

- name: Run go mod tidy
run: make tidy && git diff --exit-code

- name: Run go generate
run: make generate && git diff --exit-code

- name: Run go lint
run: make lint

- name: Run go tests
run: make test
105 changes: 42 additions & 63 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,64 +1,43 @@
# Created by https://www.toptal.com/developers/gitignore/api/jetbrains,go,visualstudiocode,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains,go,visualstudiocode,macos

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Go ###
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

### Go Patch ###
/vendor/
/Godeps/

### JetBrains ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea/

### VisualStudioCode ###
.vscode/

# End of https://www.toptal.com/developers/gitignore/api/jetbrains,go,visualstudiocode,macos

/tmp/
.*
*.log
*.pid
*.retry
*.out
*.tgz
*.zip
*.pem
bin/
tmp/

## Git
!.gitkeep
!.gitignore
!.gitattributes

## GitHub
!.github/

## Mise
!.mise.toml

## Lefthook
!.lefthook.yaml

## VSCode
!.vscode/
.vscode/*
!.vscode/extensions.json
!.vscode/settings.default.json

## Editorconfig
!.editorconfig

## Golang
go.work
go.work.sum
!.golangci.yaml
!.goreleaser.yaml

## Vitepress
node_modules/
!docs/.vitepress
Loading
Loading