File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed
Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+ on :
3+ push :
4+ branches : [ main ]
5+ tags :
6+ - v*
7+ pull_request :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Check out code into the Go module directory
15+ uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@v4
21+ with :
22+ go-version : 1.21
23+
24+ - name : Test
25+ run : go test -v ./...
26+
27+ - name : Build
28+ run : go build -v .
29+
30+ - name : Run goreleaser in release mode
31+ if : success() && startsWith(github.ref, 'refs/tags/v')
32+ uses : goreleaser/goreleaser-action@v5
33+ with :
34+ version : latest
35+ args : release --rm-dist
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
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+ time : ' 10:00'
8+ open-pull-requests-limit : 10
9+
10+ - package-ecosystem : " github-actions"
11+ directory : " /"
12+ schedule :
13+ interval : monthly
Original file line number Diff line number Diff line change 1+ name : golangci-lint
2+ on :
3+ push :
4+ tags :
5+ - v*
6+ branches :
7+ - main
8+ pull_request :
9+
10+ jobs :
11+ golangci :
12+ name : lint
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : golangci-lint
18+ uses : golangci/golangci-lint-action@v3
19+ with :
20+ version : v1.54
You can’t perform that action at this time.
0 commit comments