-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (36 loc) · 1.04 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
name: benchmark
on: workflow_dispatch
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
with:
path: karate-js
- name: set up jdk 17
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- name: cache maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: build
working-directory: karate-js
run: mvn -B install
- name: git checkout ecma test suite
uses: actions/checkout@v3
with:
repository: tc39/test262
path: test262
- name: build benchmark
working-directory: karate-js
run: mvn -B -f test-perf/pom.xml package -P fatjar
- name: run benchmark
working-directory: karate-js
run: java -jar test-perf/target/benchmark.jar