This directory shows how to use nyrkio/change-detection
with go test -bench command.
Official documentation for usage of go test -bench:
https://pkg.go.dev/testing#hdr-Benchmarks
e.g.
- name: Run benchmark
run: go test -bench 'Benchmark' | tee output.txtStore the benchmark results with step using the action. Please set go to tool input.
- name: Analyze benchmark results with Nyrkiö
uses: nyrkio/change-detection@v2
with:
tool: 'go'
output-file-path: output.txt
nyrkio-token: ${{ secrets.NYRKIO_JWT_TOKEN }}Please read 'How to use' section for common usage.