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+ name : Benchmark cmd/app
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ benchmark :
11+ runs-on : ubuntu-latest
12+ timeout-minutes : 5
13+ permissions :
14+ contents : read
15+
16+ steps :
17+ - uses : actions/checkout@v5
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@v6
21+ with :
22+ go-version : " 1.25"
23+
24+ - name : Download dependencies
25+ run : go mod download
26+
27+ - name : Run benchmarks
28+ run : |
29+ go test -bench=. -benchmem -benchtime=10s -count=5 ./cmd/app | tee benchmark_result.txt
30+
31+ - name : Upload benchmark results
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : benchmark-results-cmd-app
35+ path : benchmark_result.txt
36+ retention-days : 7
Original file line number Diff line number Diff line change 55 workflow_dispatch :
66
77jobs :
8- build-and-deploy :
8+ build :
99 runs-on : ubuntu-latest
10+ timeout-minutes : 5
1011
1112 steps :
1213 - uses : actions/checkout@v5
Original file line number Diff line number Diff line change 77jobs :
88 test :
99 runs-on : ubuntu-latest
10+ timeout-minutes : 5
1011
1112 steps :
1213 - uses : actions/checkout@v5
You can’t perform that action at this time.
0 commit comments