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
|
version: 2
|
||||||
|
|
||||||
updates:
|
updates:
|
||||||
@ -8,8 +10,7 @@ updates:
|
|||||||
interval: 'weekly'
|
interval: 'weekly'
|
||||||
groups:
|
groups:
|
||||||
github-actions:
|
github-actions:
|
||||||
patterns:
|
patterns: ['*']
|
||||||
- '*'
|
|
||||||
|
|
||||||
- package-ecosystem: 'gomod'
|
- package-ecosystem: 'gomod'
|
||||||
directory: '/'
|
directory: '/'
|
||||||
@ -19,7 +20,12 @@ updates:
|
|||||||
groups:
|
groups:
|
||||||
gomod-security:
|
gomod-security:
|
||||||
applies-to: security-updates
|
applies-to: security-updates
|
||||||
|
update-types: ['minor', 'patch']
|
||||||
patterns: ['*']
|
patterns: ['*']
|
||||||
gomod-update:
|
gomod-update:
|
||||||
applies-to: version-updates
|
applies-to: version-updates
|
||||||
|
update-types: ['minor', 'patch']
|
||||||
patterns: ['*']
|
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:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- run: git fetch --force --tags
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 'stable'
|
check-latest: true
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
- uses: goreleaser/goreleaser-action@v6
|
- uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
merge_group:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -18,7 +19,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 'stable'
|
check-latest: true
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
- uses: gotesttools/gotestfmt-action@v2
|
- uses: gotesttools/gotestfmt-action@v2
|
||||||
with:
|
with:
|
||||||
@ -29,7 +31,8 @@ jobs:
|
|||||||
version: latest
|
version: latest
|
||||||
args: --timeout=5m
|
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
|
- uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
20
.gitignore
vendored
20
.gitignore
vendored
@ -1,13 +1,25 @@
|
|||||||
.*
|
.*
|
||||||
*.log
|
*.log
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
|
/bin/
|
||||||
/tmp/
|
/tmp/
|
||||||
!.github/
|
|
||||||
!.husky/
|
## Git
|
||||||
!.editorconfig
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
||||||
|
## GitHub
|
||||||
|
!.github/
|
||||||
|
|
||||||
|
## Husky
|
||||||
|
!.husky/
|
||||||
|
!.husky.yaml
|
||||||
|
|
||||||
|
## EditorConfig
|
||||||
|
!.editorconfig
|
||||||
|
|
||||||
|
## Go
|
||||||
!.golangci.yml
|
!.golangci.yml
|
||||||
!.goreleaser.yml
|
!.goreleaser.yml
|
||||||
!.husky.yaml
|
|
||||||
go.work
|
go.work
|
||||||
go.work.sum
|
go.work.sum
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
[](https://github.com/foomo/gocontemplate/actions/workflows/test.yml)
|
[](https://github.com/foomo/gocontemplate/actions/workflows/test.yml)
|
||||||
[](https://goreportcard.com/report/github.com/foomo/gocontemplate)
|
[](https://goreportcard.com/report/github.com/foomo/gocontemplate)
|
||||||
[](https://godoc.org/github.com/foomo/gocontemplate)
|
[](https://godoc.org/github.com/foomo/gocontemplate)
|
||||||
@ -39,7 +38,7 @@ func main() {
|
|||||||
|
|
||||||
## How to Contribute
|
## 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
|
## License
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user