forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.26 KB
/
sendReassurePerfData.yml
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
name: Send Reassure Performance Tests to Graphite
on:
push:
branches: [main]
paths-ignore: [docs/**, contributingGuides/**, jest/**, workflow_tests/**]
jobs:
perf-tests:
if: ${{ github.actor != 'OSBotify' }}
runs-on: ubuntu-latest-reassure-tests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup NodeJS
uses: ./.github/actions/composite/setupNode
- name: Install dependencies
run: npm install
- name: Run performance testing script
shell: bash
run: |
set -e
NODE_OPTIONS=--experimental-vm-modules npx reassure --baseline
- name: Get merged pull request
id: getMergedPullRequest
uses: actions-ecosystem/action-get-merged-pull-request@59afe90821bb0b555082ce8ff1e36b03f91553d9
with:
github_token: ${{ github.token }}
- name: Get and save graphite string
id: saveGraphiteString
uses: ./.github/actions/javascript/getGraphiteString
with:
PR_NUMBER: ${{ steps.getMergedPullRequest.outputs.number }}
- name: Send graphite data
run: echo -e "${{ steps.saveGraphiteString.outputs.GRAPHITE_STRING }}" | nc -q0 stats.expensify.com 3003