Skip to content

Commit

Permalink
adding test to github matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Sep 26, 2024
1 parent 036bcd3 commit 33c49a4
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/run-docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ on:
branches: [ "collect-perf" ]
jobs:
build:
strategy:
matrix:
tests:
- "/app/src/lib/provable/test/merkle-list.test.ts"
- "/app/src/lib/provable/test/merkle-tree.test.ts"
- "/app/src/lib/provable/test/scalar.test.ts"
- "/app/src/lib/provable/test/merkle-map.test.ts"
- "/app/src/lib/provable/test/provable.test.ts"
- "/app/src/lib/provable/test/primitives.test.ts"
- "/app/src/lib/provable/test/group.test.ts"
- "/app/src/lib/provable/test/int.test.ts"
- "/app/src/lib/mina/precondition.test.ts"
- "/app/src/lib/mina/token.test.ts"
runs-on: ubuntu-latest
steps:
- uses: meta-introspector/checkout@v4
Expand All @@ -32,8 +45,7 @@ jobs:
run: docker pull ${{ inputs.image_url || env.default_image }}

- name: run the Docker tests
run: TESTS="/app/src/lib/provable/test/merkle-list.test.ts" docker compose up ${{ env.container_name }}
# /app/src/lib/provable/test/merkle-tree.test.ts /app/src/lib/provable/test/scalar.test.ts /app/src/lib/provable/test/merkle-map.test.ts /app/src/lib/provable/test/provable.test.ts /app/src/lib/provable/test/primitives.test.ts /app/src/lib/provable/test/group.test.ts /app/src/lib/provable/test/int.test.ts /app/src/lib/mina/precondition.test.ts"
run: TESTS=${{matrix.tests}} docker compose up ${{ env.container_name }}
env:
DOCKER_IMAGE_URL: ${{ inputs.image_url || env.default_image}}
- name: docker cp results
Expand All @@ -47,23 +59,9 @@ jobs:
run: rm -rf /tmp/perf*
- name: delete the container
run: |
docker-compose down
docker compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
- name: run the Docker tests part 2
run: docker compose up ${{ env.container_name }}-test2
env:
DOCKER_IMAGE_URL: ${{ inputs.image_url || env.default_image}}

- name: docker cp results
run: docker compose cp ${{ env.container_name }}:/tmp/perf.data.tar.gz perf.data2.tar.gz
- name: Archive results
uses: meta-introspector/upload-artifact@v4
with:
name: perf.data2.tar.gz
path: perf.data2.tar.gz

0 comments on commit 33c49a4

Please sign in to comment.