Skip to content

Commit

Permalink
ci: 从自动测试中移除了-race,因go内部调用的原因非常的慢(可能是unicode相关)
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed May 14, 2024
1 parent 058db13 commit ab18f1e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@ jobs:
- run: go mod tidy
- run: go get
- run: go generate ./...
- run: go test -v -race -cover ./...
- run: go test -v -cover ./...

# 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 ./...
- name: Upload
uses: actions/upload-artifact@v4
with:
name: cpu-profile
path: ./cpu.out
- name: Upload
uses: actions/upload-artifact@v4
with:
name: mem-profile
path: ./mem.out

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ab18f1e

Please sign in to comment.