Skip to content

Commit

Permalink
Run Benchmark Tests Only for Pull Request Events (#2842)
Browse files Browse the repository at this point in the history
* run ci only on pull requests.

* downgrade zio-cli.
  • Loading branch information
khajavi authored May 15, 2024
1 parent 07d8a2a commit 03cae0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ jobs:

runBenchmarks-simple:
name: Performance Benchmarks (PlainTextBenchmarkServer)
if: ${{ github.event_name == 'pull_request'}}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -810,6 +811,7 @@ jobs:
runBenchmarks-effectful:
name: Performance Benchmarks (SimpleEffectBenchmarkServer)
if: ${{ github.event_name == 'pull_request'}}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
6 changes: 3 additions & 3 deletions project/BenchmarkWorkFlow.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ object BenchmarkWorkFlow {
id = id,
name = name,
oses = List("ubuntu-latest"),
// cond = Some(
// "${{ github.event_name == 'pull_request'}}",
// ),
cond = Some(
"${{ github.event_name == 'pull_request'}}",
),
scalas = List(Scala213),
steps = List(
WorkflowStep.Run(
Expand Down

0 comments on commit 03cae0c

Please sign in to comment.