This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +118
-96
lines changed Expand file tree Collapse file tree 4 files changed +118
-96
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Dependabot configuration
2+ #
3+ # For more information, please refer to:
4+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
5+
6+ version : 2
7+
8+ updates :
9+
10+ # Maintain dependencies for GitHub Actions
11+ - package-ecosystem : github-actions
12+ directory : /
13+ schedule :
14+ interval : weekly
Original file line number Diff line number Diff line change 1+ name : Build and Release
2+
3+ on :
4+ workflow_dispatch :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+ tags :
11+ - ' v*'
12+ pull_request :
13+
14+ jobs :
15+ test :
16+ name : Test/Cover
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v3
22+
23+ - name : Set up Go
24+ uses : actions/setup-go@v4
25+ with :
26+ go-version : ' 1.19'
27+
28+ - name : Go caches
29+ uses : actions/cache@v3
30+ with :
31+ path : |
32+ ~/go/pkg/mod
33+ key : ${{ github.job }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34+ restore-keys : |
35+ ${{ github.job }}-${{ runner.os }}-go-
36+
37+ - name : Run test/cover
38+ run : make cover
39+ env :
40+ TEST_OUTPUT_DIR : /tmp/test-results/
41+ COVER_OUTPUT_DIR : /tmp/cover-results/
42+
43+ release :
44+ name : Create Release
45+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
46+ runs-on : ubuntu-latest
47+ needs : test
48+ permissions :
49+ contents : write
50+
51+ steps :
52+ - name : Checkout
53+ uses : actions/checkout@v3
54+ with :
55+ fetch-depth : 0
56+
57+ - name : Run GoReleaser
58+ uses : goreleaser/goreleaser-action@v4
59+ with :
60+ distribution : goreleaser
61+ version : latest
62+ args : release --clean
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # If named releases will delete the existing releases folder
2+ # which contains manifests used at this action.
3+ dist : releases-go
4+
5+ builds :
6+ - id : default
7+ main : .
8+ mod_timestamp : " {{ .CommitTimestamp }}"
9+ env :
10+ - CGO_ENABLED=0
11+ goos :
12+ - linux
13+ goarch :
14+ - amd64
15+
16+ archives :
17+ - id : default
18+ format : binary
19+ name_template : ' {{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
20+
21+ checksum :
22+ name_template : ' checksums.txt'
23+
24+ snapshot :
25+ name_template : " {{ incpatch .Version }}-next"
26+
27+ changelog :
28+ use : github
29+ sort : asc
30+ filters :
31+ exclude :
32+ - " ^docs:"
33+ - " ^test:"
34+ - " ^Merge pull request"
35+
36+ release :
37+
38+ header :
39+
40+ extra_files :
You can’t perform that action at this time.
0 commit comments