File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : gomod
4+ directory : /
5+ schedule :
6+ interval : weekly
7+ open-pull-requests-limit : 10
8+ cooldown :
9+ default-days : 7
10+
11+ - package-ecosystem : github-actions
12+ directory : /
13+ schedule :
14+ interval : weekly
15+ open-pull-requests-limit : 5
16+ cooldown :
17+ default-days : 7
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ permissions : {}
10+
11+ jobs :
12+ test :
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, macos-latest, windows-latest]
16+ go-version : ['1.25']
17+ runs-on : ${{ matrix.os }}
18+
19+ steps :
20+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+ with :
22+ persist-credentials : false
23+
24+ - name : Set up Go
25+ uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
26+ with :
27+ go-version : ${{ matrix.go-version }}
28+
29+ - name : Build
30+ run : go build -v ./...
31+
32+ - name : Test
33+ run : go test -v -race ./...
34+
35+ lint :
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+ with :
40+ persist-credentials : false
41+
42+ - name : Set up Go
43+ uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
44+ with :
45+ go-version : ' 1.25'
46+
47+ - name : golangci-lint
48+ uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
49+ with :
50+ version : latest
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+ with :
18+ fetch-depth : 0
19+ persist-credentials : false
20+
21+ - name : Set up Go
22+ uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
23+ with :
24+ go-version-file : go.mod
25+ cache : false
26+
27+ - uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
28+ with :
29+ version : " ~> v2"
30+ args : release --clean
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Zizmor
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' .github/workflows/**'
9+ pull_request :
10+ branches :
11+ - main
12+ paths :
13+ - ' .github/workflows/**'
14+ workflow_dispatch :
15+
16+ jobs :
17+ zizmor :
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+ security-events : write
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+ with :
26+ persist-credentials : false
27+
28+ - name : Run zizmor
29+ uses : zizmorcore/zizmor-action@135698455da5c3b3e55f73f4419e481ab68cdd95 # v0.4.1
Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ project_name : proxy
4+
5+ before :
6+ hooks :
7+ - go mod tidy
8+
9+ builds :
10+ - main : ./cmd/proxy
11+ binary : proxy
12+ env :
13+ - CGO_ENABLED=0
14+ goos :
15+ - linux
16+ - darwin
17+ - windows
18+ goarch :
19+ - amd64
20+ - arm64
21+ mod_timestamp : " {{ .CommitTimestamp }}"
22+ ldflags :
23+ - -s -w
24+ - -X main.Version={{.Version}}
25+ - -X main.Commit={{.Commit}}
26+
27+ archives :
28+ - formats : tar.gz
29+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
30+ files :
31+ - LICENSE*
32+ - README*
33+
34+ checksum :
35+ name_template : " checksums.txt"
36+
37+ snapshot :
38+ version_template : " {{ incpatch .Version }}-next"
39+
40+ changelog :
41+ sort : asc
42+ filters :
43+ exclude :
44+ - " ^docs:"
45+ - " ^test:"
46+ - " ^chore:"
47+ - Merge pull request
48+ - Merge branch
49+
50+ release :
51+ github :
52+ owner : git-pkgs
53+ name : proxy
54+ draft : false
55+ prerelease : auto
You can’t perform that action at this time.
0 commit comments