Repository navigation
66 lines (62 loc) · 1.76 KB
/
Copy pathpr.yml
File metadata and controls
66 lines (62 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: PR
on:
pull_request:
paths:
- 'package.json'
- 'package-lock.json'
- '.github/workflows/**'
- 'expf.config.json'
- 'packages/**'
- 'servers/**'
- 'perf/load/**'
workflow_call:
jobs:
baseline:
name: Run Baseline Load Tests (node ${{ matrix.node }})
strategy:
matrix:
node: [18, 26]
uses: ./.github/workflows/load.yml
with:
gitRef: ${{ github.event.pull_request.base.sha }}
node: ${{ matrix.node }}
test: '@expressjs/perf-load-example'
test:
name: Run Test Load Tests (node ${{ matrix.node }})
strategy:
matrix:
node: [18, 26]
uses: ./.github/workflows/load.yml
with:
gitRef: ${{ github.event.pull_request.head.sha }}
node: ${{ matrix.node }}
test: '@expressjs/perf-load-example'
compare:
name: Compare Load Tests (node ${{ matrix.node }})
needs: [baseline, test]
strategy:
matrix:
node: [18, 26]
uses: ./.github/workflows/compare.yml
with:
gitRef: ${{ github.event.pull_request.head.sha }}
path: ./perf/load/example
baselineId: ${{ needs.baseline.outputs.runId }}
testId: ${{ needs.test.outputs.runId }}
node: ${{ matrix.node }}
permissions:
actions: read
summary:
name: Summary
runs-on: ubuntu-latest
needs: [compare]
steps:
# Matrix outputs contain only one result, so collect every report via artifacts.
- name: Download comparison summaries
uses: actions/download-artifact@v8
with:
pattern: perf-compare-${{github.run_id}}-*
path: ${{runner.temp}}/comparisons
merge-multiple: true
- name: Publish summary
run: cat "$RUNNER_TEMP"/comparisons/*.md >> "$GITHUB_STEP_SUMMARY"