-
Notifications
You must be signed in to change notification settings - Fork 572
52 lines (43 loc) · 1.26 KB
/
perf_test.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
44
45
46
47
48
49
50
51
52
name: Performance Tests
on:
workflow_dispatch:
push:
branches:
- staging
permissions:
checks: write
contents: write
jobs:
testperf:
name: Perf Tests
runs-on: [self-hosted, macOS, ARM64]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.12.1'
cache: 'yarn'
- name: Install packages
run: yarn --non-interactive --frozen-lockfile
- name: Run perf tests
run: yarn test:perf:report
- name: Check for missing fixtures
run: |
if [[ $(git status | grep fixture) ]]; then
echo "New test fixtures have not been checked in, please check them in."
exit 1
fi
- name: Import to InfluxDB
if: contains(github.event_name, 'push')
env:
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
INFLUX_ORG: 'fdcfe96f6c31245a'
INFLUX_HOST: 'https://us-east-1-1.aws.cloud2.influxdata.com'
run: |
for f in ironfish/test-reports/*.perf.csv; do
influx write --bucket ironfish-telemetry-mainnet --format=csv --file $f
done