From 3e6a53de74866f6a033be54b06294215844094a7 Mon Sep 17 00:00:00 2001 From: fy Date: Wed, 15 May 2024 23:29:56 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=BF=9E=E7=BB=AD=E8=B7=913=E6=AC=A1?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_and_lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml index 4b85ce1d..6c149e9b 100644 --- a/.github/workflows/test_and_lint.yml +++ b/.github/workflows/test_and_lint.yml @@ -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: