-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (37 loc) · 1.28 KB
/
performance.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: performance
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
performance:
runs-on: ubuntu-latest
strategy:
matrix:
measure: ['measure-cli-build.js','measure-dev-server.js']
moduleMultiplier: ['1','10']
node-version: [14.x]
transpiler: ['typescript', 'babel']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run build --if-present
- working-directory: ./performance
run: npm i
- name: Measure ${{ matrix.measure }} with ${{ matrix.transpiler }} x ${{ matrix.moduleMultiplier }} on Node.js ${{ matrix.node-version }}
working-directory: ./performance
run: node ${{ matrix.measure }}
env:
transpiler: ${{ matrix.transpiler }}
moduleMultiplier: ${{ matrix.moduleMultiplier }}