Skip to content

Commit

Permalink
ci: 连续跑3次测试
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed May 15, 2024
1 parent e0ba78c commit 3e6a53d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:

# https://blog.jetbrains.com/go/2019/04/03/profiling-go-applications-and-tests/
- run: go test -v -bench=^BenchmarkInBoundsChannels$ -cpuprofile=cpu.out -memprofile mem.out .
# 第一遍是冷启动,再进行一次测试
- run: go test -v . -count=1
- run: go test -v . -count=1
- run: go test -v . -count=1

- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 3e6a53d

Please sign in to comment.