-
-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (35 loc) · 1.06 KB
/
benchmark.yml
File metadata and controls
41 lines (35 loc) · 1.06 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
name: benchmark
on:
pull_request:
paths-ignore:
- 'website/**'
concurrency:
group: ${{ github.workflow }}-benchmark-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup env
uses: the-guild-org/shared-config/setup@v1
with:
node-version-file: .node-version
- name: Build Packages
run: npm run build
- name: Setup K6
run: |
wget https://github.com/grafana/k6/releases/download/v0.37.0/k6-v0.37.0-linux-amd64.deb
sudo apt-get update
sudo apt-get install ./k6-v0.37.0-linux-amd64.deb
- name: Start Benchmark
working-directory: ./benchmark
run: |
npm run test
env:
NODE_NO_WARNINGS: true
NODE_ENV: production
GITHUB_PR: ${{ github.event.number }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}