|
30 | 30 | java: 21 |
31 | 31 | distribution: temurin |
32 | 32 | jobtype: 4 |
33 | | - - os: ubuntu-latest |
34 | | - java: 21 |
35 | | - distribution: temurin |
36 | | - jobtype: 5 |
37 | | - - os: ubuntu-latest |
38 | | - java: 21 |
39 | | - distribution: temurin |
40 | | - jobtype: 6 |
41 | 33 | runs-on: ${{ matrix.os }} |
42 | 34 | steps: |
43 | 35 | - name: Checkout |
|
65 | 57 | run: | |
66 | 58 | sbt -v --server -Dfile.encoding=UTF-8 scalafmtCheckRepo headerCheck "Test/headerCheck" generateContrabands |
67 | 59 | git diff --exit-code |
68 | | - - name: Benchmark (Scalac) (4) |
| 60 | + - name: Benchmark smoke test (4) |
69 | 61 | if: ${{ matrix.jobtype == 4 }} |
70 | 62 | shell: bash |
71 | 63 | run: | |
72 | | - sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Scalac.*" "runBenchmarks" |
73 | | - - name: Benchmark (Shapeless) (5) |
74 | | - if: ${{ matrix.jobtype == 5 }} |
75 | | - shell: bash |
76 | | - run: | |
77 | | - sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Shapeless.*" "runBenchmarks" |
78 | | - - name: Benchmark (AnalysisFormatBenchmark) (6) |
79 | | - if: ${{ matrix.jobtype == 6 }} |
80 | | - shell: bash |
81 | | - run: | |
82 | | - sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*AnalysisFormatBenchmark.*" "runBenchmarks" |
83 | | - - name: Checkout Target Branch (4-6) |
84 | | - if: ${{ github.event_name == 'pull_request' && (matrix.jobtype >= 4 && matrix.jobtype <= 6) }} |
85 | | - uses: actions/checkout@v7 |
86 | | - with: |
87 | | - ref: ${{ github.event.pull_request.base.ref }} |
88 | | - - name: Benchmark (Scalac) against Target Branch (4) |
89 | | - if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 4 }} |
90 | | - shell: bash |
91 | | - run: | |
92 | | - sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Scalac.*" "runBenchmarks" |
93 | | - - name: Benchmark (Shapeless) against Target Branch (5) |
94 | | - if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 5 }} |
95 | | - shell: bash |
96 | | - run: | |
97 | | - sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Shapeless.*" "runBenchmarks" |
98 | | - - name: Benchmark (AnalysisFormatBenchmark) against Target Branch (6) |
99 | | - if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 6 }} |
100 | | - shell: bash |
101 | | - run: | |
102 | | - sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*AnalysisFormatBenchmark.*" "runBenchmarks" |
| 64 | + sbt -v --server -Dfile.encoding=UTF-8 "-Dbenchmark.jmhOptions=-f 1 -wi 0 -i 1 -w 1s -r 1s" "runBenchmarks" |
0 commit comments