Skip to content

Commit c3cf368

Browse files
authored
Create run-docker-tests.yml
1 parent 3b55df0 commit c3cf368

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: run Perf Test and collect data
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "collect-perf" ]
7+
pull_request:
8+
branches: [ "collect-perf" ]
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: meta-introspector/checkout@v4
14+
#with:
15+
# submodules: recursive
16+
17+
- name: Login to GHCR
18+
uses: meta-introspector/login-action@v1
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: pull the image
25+
run: docker pull ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest
26+
27+
- name: run the Docker tests
28+
run: docker compose up mina-local-network
29+
30+
- name: docker cp results
31+
run: docker compose cp mina-local-network:/tmp/perf.data.tar.gz perf.data.tar.gz
32+
33+
- name: Archive results
34+
uses: meta-introspector/upload-artifact@v4
35+
with:
36+
name: perf.data.tar.gz
37+
path: perf.data.tar.gz

0 commit comments

Comments
 (0)