Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- run: redocly-next --version
- run: redocly --version
- name: Run Benchmark
run: hyperfine -i --warmup 3 'redocly lint packages/core/src/benchmark/benches/rebilly.yaml' 'redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml' --export-markdown benchmark_check.md --export-json benchmark_check.json
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

- name: Comment PR
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Expand All @@ -63,12 +63,12 @@ jobs:
run: |
npm run compile
npm run pack:prepare
cd benchmark/
cd tests/performance/
npm i
npm run make-test
- name: Run Benchmark
run: |
cd benchmark/
cd tests/performance/
npm test # This command is generated and injected into package.json in the previous step.
cat benchmark_check.md
npm run chart # Creates benchmark_chart.md with the performance bar chart.
Expand All @@ -77,5 +77,5 @@ jobs:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: thollander/actions-comment-pull-request@v2
with:
filePath: benchmark/benchmark_chart.md
filePath: tests/performance/benchmark_chart.md
comment_tag: historical-versions-comparison
28 changes: 14 additions & 14 deletions .github/workflows/smoke-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Prepare Smoke
run: bash ./__tests__/smoke-plugins/prepare-smoke-plugins.sh
run: bash ./tests/smoke/plugins/prepare-smoke-plugins.sh
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}

run-smoke-plugins--npm--node-24:
Expand All @@ -35,77 +35,77 @@ jobs:
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}
- uses: actions/setup-node@v3
with:
node-version: 24
- run: bash ./__tests__/smoke-plugins/run-smoke.sh
- run: bash ./tests/smoke/plugins/run-smoke.sh

run-smoke-plugins--npm--node-24--windows:
needs: prepare-smoke-plugins
runs-on: windows-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}
enableCrossOsArchive: true
- uses: actions/setup-node@v3
with:
node-version: 24
- run: bash ./__tests__/smoke-plugins/run-smoke.sh
- run: bash ./tests/smoke/plugins/run-smoke.sh

run-smoke-plugins--npm--node-22:
needs: prepare-smoke-plugins
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}
- uses: actions/setup-node@v3
with:
node-version: 22
- run: bash ./__tests__/smoke-plugins/run-smoke.sh
- run: bash ./tests/smoke/plugins/run-smoke.sh

run-smoke-plugins--npm--node-22--windows:
needs: prepare-smoke-plugins
runs-on: windows-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}
enableCrossOsArchive: true
- uses: actions/setup-node@v3
with:
node-version: 22
- run: bash ./__tests__/smoke-plugins/run-smoke.sh
- run: bash ./tests/smoke/plugins/run-smoke.sh

run-smoke-plugins--npm--node-20:
needs: prepare-smoke-plugins
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}
- uses: actions/setup-node@v3
with:
node-version: 20
- run: bash ./__tests__/smoke-plugins/run-smoke.sh
- run: bash ./tests/smoke/plugins/run-smoke.sh

run-smoke-plugins--npm--node-20--windows:
needs: prepare-smoke-plugins
runs-on: windows-latest
steps:
- uses: actions/cache@v3
with:
path: __tests__/smoke-plugins/
path: tests/smoke/plugins/
key: cache-plugins-${{ github.run_id }}-${{ github.run_attempt }}
enableCrossOsArchive: true
- uses: actions/setup-node@v3
with:
node-version: 20
- run: bash ./__tests__/smoke-plugins/run-smoke.sh
- run: bash ./tests/smoke/plugins/run-smoke.sh
Loading
Loading