From 0de88d063804b9a9e61d10eda717ad69ddbc31dd Mon Sep 17 00:00:00 2001 From: Callum Dunster Date: Tue, 10 Sep 2024 10:26:49 +0200 Subject: [PATCH] chore(ci): use github matrix to call test scenarios --- .github/workflows/performance.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/performance.yaml b/.github/workflows/performance.yaml index 966bb277..d5904eeb 100644 --- a/.github/workflows/performance.yaml +++ b/.github/workflows/performance.yaml @@ -8,15 +8,19 @@ on: jobs: test: runs-on: [self-hosted, wind-tunnel] + strategy: + fail-fast: false + matrix: + scenario: [ zome_call_single_value ] steps: - uses: actions/checkout@v4 - - name: Smoke test - zome_call_single_value + - name: Smoke test - ${{ matrix.scenario }} run: | # Start a sandbox conductor and run it in the background nix develop .#ci -c bash -c "hc s clean && echo "1234" | hc s --piped create && echo "1234" | hc s --piped -f 8888 run &" # Run the scenario for 5 seconds - RUST_LOG=info nix run .#zome_call_single_value -- --connection-string ws://localhost:8888 --duration 5 --no-progress --reporter influx-file + RUST_LOG=info nix run .#${{ matrix.scenario }} -- --connection-string ws://localhost:8888 --duration 5 --no-progress --reporter influx-file pkill hc && pkill holochain && pkill lair-keystore