mirror of
https://github.com/foomo/gocontemplate.git
synced 2025-10-16 12:35:36 +00:00
chore: update setup
This commit is contained in:
parent
16133984f9
commit
5d221721e1
10
.github/dependabot.yml
vendored
10
.github/dependabot.yml
vendored
@ -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"]
|
||||
|
||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -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:
|
||||
|
||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -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
20
.gitignore
vendored
@ -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
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
[](https://github.com/foomo/gocontemplate/actions/workflows/test.yml)
|
||||
[](https://goreportcard.com/report/github.com/foomo/gocontemplate)
|
||||
[](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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user