diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13d8f27..10e74de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Set up + run: + sudo apt-get update + sudo apt-get install -y valgrind + - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 @@ -38,6 +43,9 @@ jobs: - name: Run benchmark run: make benchmark + - name: Run cachegrind + run: make cachegrind + - name: Run octocov uses: k1LoW/octocov-action@v0 env: diff --git a/Makefile b/Makefile index afd7180..0346b70 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ benchmark: depsdev go mod tidy -modfile=testdata/go_test.mod go test -modfile=testdata/go_test.mod -bench . -benchmem -benchtime 10000x -run Benchmark | octocov-go-test-bench --tee > custom_metrics_benchmark.json +cachegrind: depsdev + go mod tidy -modfile=testdata/go_test.mod + valgrind --tool=cachegrind go test -modfile=testdata/go_test.mod -bench . -benchmem -benchtime 10000x -run Benchmark + lint: go mod tidy golangci-lint run ./...