chore: update setup

This commit is contained in:
Kevin Franklin Kim 2025-03-11 16:13:41 +01:00
parent 16133984f9
commit 5d221721e1
No known key found for this signature in database
5 changed files with 32 additions and 13 deletions

View File

@ -1,3 +1,5 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
@ -8,8 +10,7 @@ updates:
interval: 'weekly'
groups:
github-actions:
patterns:
- '*'
patterns: ['*']
- package-ecosystem: 'gomod'
directory: '/'
@ -19,7 +20,12 @@ updates:
groups:
gomod-security:
applies-to: security-updates
update-types: ['minor', 'patch']
patterns: ['*']
gomod-update:
applies-to: version-updates
update-types: ['minor', 'patch']
patterns: ['*']
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]

View File

@ -17,11 +17,10 @@ jobs:
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
with:
go-version: 'stable'
check-latest: true
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v6
with:

View File

@ -4,6 +4,7 @@ on:
push:
branches: [ main ]
pull_request:
merge_group:
workflow_dispatch:
concurrency:
@ -18,7 +19,8 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 'stable'
check-latest: true
go-version-file: 'go.mod'
- uses: gotesttools/gotestfmt-action@v2
with:
@ -29,7 +31,8 @@ jobs:
version: latest
args: --timeout=5m
- run: make test
- name: Run tests
run: GO_TEST_TAGS=-skip go test -coverprofile=coverage.out -race -json ./... | gotestfmt
- uses: coverallsapp/github-action@v2
with:

20
.gitignore vendored
View File

@ -1,13 +1,25 @@
.*
*.log
*.out
/bin/
/tmp/
!.github/
!.husky/
!.editorconfig
## Git
!.gitignore
## GitHub
!.github/
## Husky
!.husky/
!.husky.yaml
## EditorConfig
!.editorconfig
## Go
!.golangci.yml
!.goreleaser.yml
!.husky.yaml
go.work
go.work.sum

View File

@ -1,4 +1,3 @@
[![Build Status](https://github.com/foomo/gocontemplate/actions/workflows/test.yml/badge.svg?branch=main&event=push)](https://github.com/foomo/gocontemplate/actions/workflows/test.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/foomo/gocontemplate)](https://goreportcard.com/report/github.com/foomo/gocontemplate)
[![GoDoc](https://godoc.org/github.com/foomo/gocontemplate?status.svg)](https://godoc.org/github.com/foomo/gocontemplate)
@ -39,7 +38,7 @@ func main() {
## How to Contribute
Please refer to the [CONTRIBUTING](.gihub/CONTRIBUTING.md) details and follow the [CODE_OF_CONDUCT](.gihub/CODE_OF_CONDUCT.md) and [SECURITY](.github/SECURITY.md) guidelines.
Please refer to the [CONTRIBUTING](.github/CONTRIBUTING.md) details and follow the [CODE_OF_CONDUCT](.github/CODE_OF_CONDUCT.md) and [SECURITY](.github/SECURITY.md) guidelines.
## License