From 173db7d95f8c0a93a96a29a0b947d3383df9c3d6 Mon Sep 17 00:00:00 2001 From: Trystan Schneider Date: Thu, 14 Nov 2024 03:04:03 +0100 Subject: [PATCH] Upgrade test --- .github/workflows/bench-aws.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bench-aws.yml b/.github/workflows/bench-aws.yml index d02623d38..b90fd1466 100644 --- a/.github/workflows/bench-aws.yml +++ b/.github/workflows/bench-aws.yml @@ -22,21 +22,18 @@ jobs: run: | set -ex if [ "$TRIGGER" = 'push' ]; then - echo 'type=["localhost"]' >> "$GITHUB_OUTPUT" - echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}]' >> "$GITHUB_OUTPUT" + echo '{"include":[{"type": "localhost", "ntasks":100, "polling-limit": 300}]}' > matrix.json elif [ "$TRIGGER" = 'release' ]; then - echo 'type=["localhost", "aws"]' >> "$GITHUB_OUTPUT" - echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "aws", "ntasks":1000, "polling-limit": 600}]' >> "$GITHUB_OUTPUT" + echo '{"include":[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "aws", "ntasks":1000, "polling-limit": 600}]}' > matrix.json fi + echo "::set-output name=matrix::$(cat matrix.json)" test-matrix: name: Test matrix runs-on: ubuntu-latest needs: define-matrix strategy: fail-fast: false - matrix: - type: ${{ fromJSON(needs.define-matrix.outputs.type) }} - include: ${{ fromJSON(needs.define-matrix.outputs.include) }} + matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }} steps: - id: test name: Test matrix