From 366e7a220a352be84391f93048ee2c5a863328e8 Mon Sep 17 00:00:00 2001 From: Marcelo Lazaroni Date: Fri, 13 Dec 2024 17:12:02 +0000 Subject: [PATCH 1/2] Fix bench command --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 866d4c2..43f5b49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,5 @@ jobs: # We run this only when a PR is merged so we can see how things are performing # on the GH actions machines. - name: Benchmark - if: github.ref == 'refs/heads/main' - env: - PGSERVICE: ${{ steps.postgres-setup.outputs.service-name }} - run: cabal run emulator-tests + # if: github.ref == 'refs/heads/main' + run: cabal run emulator-bench From 0add9c1f91e00e0947a603b0aa9178eb84937415 Mon Sep 17 00:00:00 2001 From: Marcelo Lazaroni Date: Fri, 13 Dec 2024 17:18:10 +0000 Subject: [PATCH 2/2] Enable benchmarks only on merge --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43f5b49..c99e7b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,5 +101,5 @@ jobs: # We run this only when a PR is merged so we can see how things are performing # on the GH actions machines. - name: Benchmark - # if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' run: cabal run emulator-bench