-
Notifications
You must be signed in to change notification settings - Fork 94
48 lines (39 loc) · 1.4 KB
/
reassurePerfTests.yml
File metadata and controls
48 lines (39 loc) · 1.4 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
name: Reassure Performance Tests
on:
pull_request:
types: [opened, synchronize]
branches-ignore: [staging, production]
paths-ignore: ['**.md', '**.sh']
jobs:
# Note: We run baseline and delta performance checks in the same runner to reduce hardware variance across machines
perf-tests:
if: ${{ github.actor != 'OSBotify' }}
runs-on: ubuntu-latest
steps:
# v4
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
with:
ref: ${{ github.event.pull_request.base.ref }}
# v4
- name: Setup Node
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm install
- name: Run Reassure baseline tests
run: npx reassure --baseline
- name: Checkout PR head SHA
run: |
git fetch origin ${{ github.event.pull_request.head.sha }} --no-tags --depth=1
git switch --force --detach ${{ github.event.pull_request.head.sha }}
- name: Reinstall dependencies
run: npm install --force
- name: Run Reassure delta tests
run: npx reassure --branch
- name: Validate output.json
id: validateReassureOutput
uses: ./.github/actions/javascript/validateReassureOutput
with:
DURATION_DEVIATION_PERCENTAGE: 20