ci: add github action for autorelease and golangci file

This commit is contained in:
f1zm0 2023-03-31 18:23:57 +02:00
parent 840451dd78
commit 30b8740982
2 changed files with 79 additions and 0 deletions

35
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Release
on:
push:
branches:
- main
- release
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write # to create release commit
pull-requests: write # to create release PR
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: go
package-name: actions-testing
changelog-types: >
[
{ "type": "build", "section": "Build System", "hidden": false },
{ "type": "ci", "section": "Continuous Integration", "hidden": false },
{ "type": "chore", "section": "Misc", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
{ "type": "revert", "section": "Reverts", "hidden": false },
{ "type": "refactor", "section": "Code Refactoring", "hidden": false },
{ "type": "style", "section": "Styles", "hidden": false },
{ "type": "test", "section": "Tests", "hidden": false }
]

44
.golangci.yml Normal file
View File

@ -0,0 +1,44 @@
skip-dirs:
- dist
- data
issues:
exclude-use-default: false
output:
format: colored-line-number
linters:
disable-all: true
enable:
- asciicheck
- bidichk
- decorder
- durationcheck
- errcheck
- errname
- goconst
- gocyclo
- godot
- godox
- gofumpt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- revive
- staticcheck
- typecheck
- unconvert
- unused
linters-settings:
gofumpt:
lang-version: "1.18"
extra-rules: true
godox:
keywords:
- FIXME
lll:
line-length: 140
tab-width: 1