@@ -28,26 +28,27 @@ jobs:
2828 run : npm i -g hyperfine @redocly/cli@latest
2929 - name : Prepare
3030 run : |
31- jq '.bin = {"redocly-next":"bin/cli.js"} | .name = "@redocly/cli-next"' packages/cli/package.json > __tmp__.json
32- mv __tmp__.json packages/cli/package.json
33- cat packages/cli/package.json
31+ npm run compile
3432 npm run pack:prepare
35- npm i -g redocly-cli.tgz
36- - run : redocly-next --version
37- - run : redocly --version
33+ cd tests/performance/
34+ npm i
35+ npm run make-test
36+
3837 - name : Run Benchmark
39- run : hyperfine -i --warmup 3 'redocly lint resources/rebilly.yaml' 'redocly-next lint resources/rebilly.yaml' --export-markdown benchmark_check.md --export-json benchmark_check.json
38+ run : |
39+ cd tests/performance/
40+ npm run compare-latest-vs-next
4041
4142 - name : Comment PR
4243 if : ${{ github.event.pull_request.head.repo.full_name == github.repository }}
4344 uses : thollander/actions-comment-pull-request@v2
4445 with :
45- filePath : benchmark_check .md
46+ filePath : tests/performance/benchmark_chart .md
4647 comment_tag : latest-vs-next-comparison
4748
4849 historical-versions :
4950 # Run only on release branch (changeset-release/main):
50- if : github.head_ref == 'changeset-release/main'
51+ # if: github.head_ref == 'changeset-release/main' # FIXME: Uncomment this!
5152 runs-on : ubuntu-latest
5253 steps :
5354 - uses : actions/checkout@v4
@@ -66,10 +67,11 @@ jobs:
6667 cd tests/performance/
6768 npm i
6869 npm run make-test
70+
6971 - name : Run Benchmark
7072 run : |
7173 cd tests/performance/
72- npm test # This command is generated and injected into package.json in the previous step.
74+ npm run compare-historical-versions # This command is generated and injected into package.json in the previous step.
7375 cat benchmark_check.md
7476 npm run chart # Creates benchmark_chart.md with the performance bar chart.
7577
0 commit comments