-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
43 lines (38 loc) · 1.06 KB
/
benchmark.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: TypeScript Benchmark
on:
pull_request:
paths:
- ".github/workflows/benchmark.yml"
- "package.json"
- "types/**"
- "benchmarks/typescript/**"
push:
branches:
- master
paths:
- ".github/workflows/benchmark.yml"
- "package.json"
- "types/**"
- "benchmarks/typescript/**"
permissions:
contents: read
jobs:
typescript:
runs-on: ubuntu-20.04
name: Benchmark TypeScript Types
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: 16
- run: npm install
- run: node ./scripts/create-tarball.js
- run: npm install
working-directory: benchmarks/typescript/simple
- run: npx ts-benchmark -p ./ -f 17/100000 18 29 32 -b master -g -t --colors
working-directory: benchmarks/typescript/simple
env:
DB_URL: ${{ secrets.DB_URL }}